Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make private messages more reliable #25

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

how to make private messages more reliable #25

GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 5 Nov 2009 at 5:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant