return $msg;
}
+ public static function ping($token = 'localhorsttv') {
+ $msg = new IRCMessage();
+ $msg->command = 'PING';
+ $msg->params[] = $token;
+ return $msg;
+ }
+
public static function privmsg($target, $message) {
$msg = new IRCMessage();
$msg->command = 'PRIVMSG';
return $this->command == 'PING';
}
+ public function isPong() {
+ return $this->command == 'PONG';
+ }
+
public function isPrivMsg() {
return $this->command == 'PRIVMSG';
}