22:04:28 <ZppixBot> [irc.py] Exception from #channel: UnboundLocalError: local variable 'nick' referenced before assignment (file "/data/project/zppixbot/.sopel/modules/channelmgnt.py", line 440, in invite_user) (:nick!user@host PRIVMSG #channel :.invite)
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T234475 [EPIC] Improve ZppixBot ChannelManagement features | |||
Resolved | RhinosF1 | T241657 UnboundLocalError in invite_user |
Event Timeline
Comment Actions
Looking at it, I see 2 distinct bugs
This is caused by the fact ‘if not nick’ should have returned an error to the user when nick doesn’t exist.
I can catch this
But I also see that if get_chanops is empty then it should stop there.
Comment Actions
This is probably best being stuck into 2020 Q1’s work anyway so shoving it in that. I suppose that means I can start in about 2 hours.