note 22083 added to function.ircg-register-format-messages

From: Date: Thu, 06 Jun 2002 01:38:09 +0000
Subject: note 22083 added to function.ircg-register-format-messages
Groups: php.notes 
Request: Send a blank email to php-notes+get-31513@lists.php.net to get a copy of this message
I am hoping to clarify a little bit about how this function works. This function sets up the way that the IRC messages are formatted and delivered to the current connection. Since this is a dynamic resource, you will likely need to either know or learn Jscript or something similar. I am placing my format messages here so that you can see how to split it off and send the information to jscript functions for processing/updating. I will leave it to you however to write the actual functions to handle the data.. I wouldnt want to spoil all the fun. :) One last thing.. This is by NO MEANS the only way to use this library. I am merely trying to help those that might be confused get a better understanding of the way the data is passed. <? //--- function begin --- ircg_register_format_messages("MYIRC", array( "<script> reg_message('%c','%f','%r'); </script>\n", "<script> receive_private_message('%f','%t','%j'); </script>\n", "<script> send_private_message('%t','%f','%j'); </script>\n", "<script> remove_chanuser('%1c','%f'); </script>\n", "<script> single_userjoin('%c', '%f'); </script>\n", "<script> kick_user('%1c','%1f','%1t','%j'); </script>\n", "<script> change_topic('%f','%j'); </script>\n", "<script> irc_error('%f','%t','%c','%m'); </script>\n", "<script> fatal_error('%f','%t','%c','%m'); </script>\n", "<script> end_joinlist('%f','%t','%c','%m'); </script>\n", "<script> remove_channel(); </script>\n", "<script> nick_change('%f','%t'); </script>\n", "<script> user_quit_chat('%f','%c','%m'); </script>\n", "<script> start_mass_join('%1c'); </script>\n", "<script> massjoin_to_userlist('%c','%f'); </script>\n", "<script> end_mass_join(); </script>\n", "<script> whois_user('%f','%m'); </script>\n", "<script> whois_serv('%f','%c','%m'); </script>\n", "<script> whois_idle('%f','%m'); </script>\n", "<script> whois_channel('%f','%c'); </script>\n", "<script> whois_end('%f'); </script>\n", "<script> voice_change('%f','%t','%c'); </script>\n", "<script> op_change('%f','%t','%c'); </script>\n", "<script> banlist_begin(); </script>\n", "<script> banlist_end(); </script>\n", )); //--- function end --- ?> Good luck! Scott -- http://www.php.net/manual/en/function.ircg-register-format-messages.php http://master.php.net/manage/user-notes.php?action=edit+22083 http://master.php.net/manage/user-notes.php?action=delete+22083 http://master.php.net/manage/user-notes.php?action=reject+22083

« previous php.notes (#31513) next »