In writing a small join-on-invite Python module, I found that my OnInvite was never being called, despite that I was clearly being invited to channels by GameSurge's ChanServ.
My code:
importzncclassinvitejoin(znc.Module):description="Join on invite"defOnLoad(self,arfsi,message):self.PutModule("Herp")returnznc.CONTINUEdefOnInvite(self,nick,channel):self.PutModule("Derp")returnznc.CONTINUE
I get all the Herp and none of the Derp. To reproduce, you can use "!uset autoinvite on" as a registered user on GameSurge.
It seems I wasn't the only one who noticed this issue:
In writing a small join-on-invite Python module, I found that my OnInvite was never being called, despite that I was clearly being invited to channels by GameSurge's ChanServ.
My code:
``` python
import znc
class invitejoin(znc.Module):
description = "Join on invite"
def OnLoad(self, arfsi, message):
self.PutModule("Herp")
return znc.CONTINUE
def OnInvite(self, nick, channel):
self.PutModule("Derp")
return znc.CONTINUE
```
I get all the Herp and none of the Derp. To reproduce, you can use "!uset autoinvite on" as a registered user on GameSurge.
It seems I wasn't the only one who noticed this issue:
https://github.com/tubersan/generic-irc-bot/blob/f615ef6ac0e2de10d688ddb7fca28150f664a820/GIB.py#L80
<!-- github-sync-id:162022968 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
In writing a small join-on-invite Python module, I found that my OnInvite was never being called, despite that I was clearly being invited to channels by GameSurge's ChanServ.
My code:
I get all the Herp and none of the Derp. To reproduce, you can use "!uset autoinvite on" as a registered user on GameSurge.
It seems I wasn't the only one who noticed this issue:
https://github.com/tubersan/generic-irc-bot/blob/f615ef6ac0e2de10d688ddb7fca28150f664a820/GIB.py#L80
ZNC version?
Also need the relevant snippet from
znc -DSorry, git (
b7309cdaa4)