diff --git a/Classes/Protocol/IrcProtocolHandler.php b/Classes/Protocol/IrcProtocolHandler.php index ff97151..1bae6d5 100644 --- a/Classes/Protocol/IrcProtocolHandler.php +++ b/Classes/Protocol/IrcProtocolHandler.php @@ -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":