From 23ca3e0554d4d54321de513903c5753bd35c031b Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 23 Jan 2011 22:52:22 +0000 Subject: [PATCH] [TASK] Implemented 372 in IrcProtocolHandler. --- Classes/Protocol/IrcProtocolHandler.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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":