Esempio n. 1
0
 function onChannelMessage()
 {
     $this->init();
     $chars = strlen($this->info['text']);
     $words = sizeof(explode(" ", $this->info['text']));
     $smilies = libString::countSmilies($this->info['text']);
     $sql = "UPDATE stats SET chars = chars+" . $chars . ", words=words+" . $words . ", smilies=smilies+" . $smilies . ", `lines`=`lines`+1 WHERE channel='" . $this->channel . "' AND nick='" . $this->nick . "'";
     $this->MySQL->sendQuery($sql);
 }