-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error message causes flood protection to trigger, kicking the bot #24
Comments
<st_iron> .weather isle of man |
I tried a series of problematic commands in the test room with OQ, but we cannot reproduce the issue. |
Output should still be limited to 3 or 4 lines (even errors) to prevent a denial of service attack on the bot. |
It seems that the main issue is the "newline" character in the response from HTTP. It must be stripped first, because the IRCd treats it as a command evaluation. The bot can split the long output to chunks of messages. |
Another example... |
#25 fixes it. |
I close it now, it can be reopened if necessary. |
Trying to query an unknown location gives the following error
==> 13:17 < Coraxyn> Thanks Gustaf
13:17 < gustaf> .weather Isle of Man
13:17 <+pg-bot> Sorry, I got an error: The value of VECTOR is "
Quits: pg-bot
Message in REPL:
==> UNHANDLED-EVENT:3757580221: PRIVMSG: Coraxyn #photogeeks "Thanks Gustaf"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot <title>Runtime "Unknown command"
UNHANDLED-EVENT:3757580224: ERR_UNKNOWNCOMMAND: cherryh.freenode.net pg-bot <meta "Unknown command"
UNHANDLED-EVENT:3757580224: ERROR: "Closing Link: 165.227.165.91 (Excess Flood)"
The text was updated successfully, but these errors were encountered: