[TASK] Implemented 372 in IrcProtocolHandler.

This commit is contained in:
Jan Philipp Timme 2011-01-23 22:52:22 +00:00
parent 7e7ac368b2
commit 23ca3e0554
1 changed files with 8 additions and 1 deletions

View File

@ -53,8 +53,11 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
//we'll write these values into the contentObject later! //we'll write these values into the contentObject later!
//contains a user or the channel a command is addressed to. //contains a user or the channel a command is addressed to.
$target = ""; $target = "";
//parameters of the command
$params = ""; $params = "";
//content or message
$message = ""; $message = "";
//affected nickname
$subject = ""; $subject = "";
//command-dependent parsing //command-dependent parsing
@ -109,6 +112,11 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
unset($pieces); unset($pieces);
break; break;
//MOTD content
case "372":
list($target, $message) = explode(" :", $data);
break;
//user, comment //user, comment
case "KILL": case "KILL":
case "MODE": case "MODE":
@ -136,7 +144,6 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
case "353": case "353":
//NAMES end //NAMES end
case "366": case "366":
case "372":
//MOTD start //MOTD start
case "375": case "375":