[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!
//contains a user or the channel a command is addressed to.
$target = "";
//parameters of the command
$params = "";
//content or message
$message = "";
//affected nickname
$subject = "";
//command-dependent parsing
@ -109,6 +112,11 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
unset($pieces);
break;
//MOTD content
case "372":
list($target, $message) = explode(" :", $data);
break;
//user, comment
case "KILL":
case "MODE":
@ -136,7 +144,6 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
case "353":
//NAMES end
case "366":
case "372":
//MOTD start
case "375":