progval / Limnoria

A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins.
https://docs.limnoria.net/
Other
622 stars 174 forks source link

Channel.alert is broken #1452

Closed Mikaela closed 3 years ago

Mikaela commented 3 years ago
2021-137 14:22:58 EEST <~Mikaela> <channel alert whatever
2021-137 14:22:58 EEST <%R-66Y> Error: NameError: name 'msg' is not defined

Can be reproduced on canon Limnoria and a third instance in addition to mine.

Log:

May 17 14:22:58 etro supybot[11231]: INFO 2021-05-17T11:22:58 channel alert called on #test by "Mikaela!~u@mikaela.info".                                                                   
May 17 14:22:58 etro supybot[11231]: ERROR 2021-05-17T11:22:58 Uncaught exception in ['channel', 'alert'].                                                                                  
May 17 14:22:58 etro supybot[11231]: Traceback (most recent call last):
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/callbacks.py", line 1552, in _callCommand                                            
May 17 14:22:58 etro supybot[11231]:     self.callCommand(command, irc, msg, *args, **kwargs)
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/utils/python.py", line 90, in g                                                      
May 17 14:22:58 etro supybot[11231]:     f(self, *args, **kwargs)
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/callbacks.py", line 1518, in callCommand                                             
May 17 14:22:58 etro supybot[11231]:     method(irc, msg, *args, **kwargs)
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/commands.py", line 1116, in newf                                                     
May 17 14:22:58 etro supybot[11231]:     f(self, irc, msg, args, *state.args, **state.kwargs)
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/plugins/Channel/plugin.py", line 963, in alert                                       
May 17 14:22:58 etro supybot[11231]:     self.alertOps(irc, channel, text, frm=msg.nick)
May 17 14:22:58 etro supybot[11231]:   File "/home/limnoria/.local/lib/python3.7/site-packages/supybot/plugins/Channel/plugin.py", line 952, in alertOps                                    
May 17 14:22:58 etro supybot[11231]:     if ircdb.checkCapability(msg.prefix, capability):
May 17 14:22:58 etro supybot[11231]: NameError: name 'msg' is not defined
May 17 14:22:58 etro supybot[11231]: ERROR 2021-05-17T11:22:58 Exception id: 0x969c6

Edit: possibly related to https://github.com/ProgVal/Limnoria/issues/624 ?