return $this->command == 'PRIVMSG';
}
+ public function isOwner() {
+ return substr($this->getPrivMsgTarget(), 1) == $this->nick;
+ }
+
+ public function isMod() {
+ return $this->isOwner() || (isset($this->tags['mod']) && $this->tags['mod'] == '1');
+ }
+
public function makePong() {
$msg = new IRCMessage();
$msg->command = 'PONG';