Closed gustafe closed 5 years ago
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.
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 "<!DOCTYPE html> 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