Amos94 / webchat2

Automatically exported from code.google.com/p/webchat2
GNU General Public License v2.0
0 stars 0 forks source link

how to make private messages more reliable #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ircClient.php: replace existing on_msg function with:

    public function on_msg($from, $channel, $msg)
    {
        if(substr($channel, 0, 1) != '#') {
        $this->on_privmsg($from, $msg);
        } else {
        $msg = str_replace('\\','\\\\',htmlentities($msg, ENT_QUOTES, 
'UTF-8'));
        $this->send_script("chat.onMessage('$from', '$channel', 
'$msg');");
        }
    }

Original issue reported on code.google.com by blade.e...@gmail.com on 5 Nov 2009 at 5:01