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

MOTD - Page freezes if server has no MOTD #11

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

MOTD - Page freezes if server has no MOTD #11

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Simple, join a server with no MOTD and see!
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Temp fix: Add the following function in IRCClient.php

    private function err_nomotd($from, $command, $to, $param)
    {
        if (!empty($this->channel)) {
            $this->join($this->channel);
        }
        foreach ($this->server_info as $key => $val) {

                $key = htmlspecialchars($key, 
ENT_QUOTES, 'UTF-8');
                $val = htmlspecialchars($val, 
ENT_QUOTES, 'UTF-8');
                $this->send_script("chat.onServerInfo
('$key','$val');");
        }
             $this->send_script("chat.onMotd('MOTD File is missing');");
    }


Original issue reported on code.google.com by [email protected] on 22 Aug 2007 at 10:26

@GoogleCodeExporter
Copy link
Author

patch works
just adding it inside the class works

Original comment by [email protected] on 5 Jun 2009 at 2:44

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