<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >ircg_register_format_messages</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="IRC Gateway Functions" HREF="ref.ircg.html"><LINK REL="PREVIOUS" TITLE="ircg_pconnect" HREF="function.ircg-pconnect.html"><LINK REL="NEXT" TITLE="ircg_set_current" HREF="function.ircg-set-current.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ircg-pconnect.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ircg-set-current.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.ircg-register-format-messages" ></A >ircg_register_format_messages</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN47589" ></A ><P > (PHP 4 >= 4.0.5, PHP 5)</P >ircg_register_format_messages -- Register a format message set </DIV ><DIV CLASS="refsect1" ><A NAME="AEN47592" ></A ><H2 >Description</H2 >bool <B CLASS="methodname" >ircg_register_format_messages</B > ( string name, array messages)<BR ></BR ><P > With <B CLASS="function" >ircg_register_format_messages()</B > you can customize the way your IRC output looks like or which script functions are invoked on the client side. </P ><P > <P ></P ><UL ><LI ><P >Plain channel message</P ></LI ><LI ><P >Private message received</P ></LI ><LI ><P >Private message sent</P ></LI ><LI ><P >Some user leaves channel</P ></LI ><LI ><P >Some user enters channel</P ></LI ><LI ><P >Some user was kicked from the channel</P ></LI ><LI ><P >Topic has been changed</P ></LI ><LI ><P >Error</P ></LI ><LI ><P >Fatal error</P ></LI ><LI ><P >Join list end(?)</P ></LI ><LI ><P >Self part(?)</P ></LI ><LI ><P >Some user changes his nick</P ></LI ><LI ><P >Some user quits his connection</P ></LI ><LI ><P >Mass join begin</P ></LI ><LI ><P >Mass join element</P ></LI ><LI ><P >Mass join end</P ></LI ><LI ><P >Whois user</P ></LI ><LI ><P >Whois server</P ></LI ><LI ><P >Whois idle</P ></LI ><LI ><P >Whois channel</P ></LI ><LI ><P >Whois end</P ></LI ><LI ><P >Voice status change on user</P ></LI ><LI ><P >Operator status change on user</P ></LI ><LI ><P >Banlist</P ></LI ><LI ><P >Banlist end</P ></LI ></UL > <P ></P ><UL ><LI ><P >%f - from</P ></LI ><LI ><P >%t - to</P ></LI ><LI ><P >%c - channel</P ></LI ><LI ><P >%r - plain message</P ></LI ><LI ><P >%m - encoded message</P ></LI ><LI ><P >%j - js encoded message</P ></LI ></UL > <P ></P ><UL ><LI ><P >1 - mod encode</P ></LI ><LI ><P >2 - nickname decode</P ></LI ></UL > </P ><P > See also: <A HREF="function.ircg-lookup-format-messages.html" ><B CLASS="function" >ircg_lookup_format_messages()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ircg-pconnect.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ircg-set-current.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ircg_pconnect</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ircg.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ircg_set_current</TD ></TR ></TABLE ></DIV ></BODY ></HTML >