Bug #1700
SpewStat bad argument crashing
Status:
Resolved
Priority:
Low
Assignee:
-
Category:
-
vbulletin_issue_id:
Description
If you call SpewStat with a bad argument, it crashes ogre.
I believe I tried "Reuse"
Added by ClassicCoke over 8 years ago. Updated over 8 years ago.
Description
If you call SpewStat with a bad argument, it crashes ogre.
I believe I tried "Reuse"
It would have been when you issued an invalid 3rd argument. Reuse is actually fine.
IE: !c me -spewstats all reuse
Works fine.
The last parameter (which I left blank), is where to send the information too. It has to be a valid innerspace command. In this scenario, the 3 acceptable ones, are oc (ogreconsole, which is the default if left blank), irc (for OgreIRC), or echo (for the regular console).
I can likely make this dump out of thread so it won't crash just give errors.
With OgreBot 17.105
Added a check to ensure where to send the information to is a valid innerspace command.
17:56:25: !c -spewstats all deity IAmNoob
17:56:25: ToonName-> Tried to execute a SpewStat to *IAmNoob* which is not a valid innerspace command.
Also took it out of Ogrebot's main thread, so if some how you do manage to still crash it, it won't crash Ogrebot.