Skip to content

Commit

Permalink
Merge pull request #6 from TotallyNotRobots/1.7-python-method-contract
Browse files Browse the repository at this point in the history
Fix method return contract in masshl.py
  • Loading branch information
A-UNDERSCORE-D authored Jul 30, 2018
2 parents 0c8c568 + e735c36 commit 792daad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/masshl.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def OnChanMsg(self, inick, ichan, msg):
if self.nvget("debug"):
self.PutModule("cleared {nick} {chan}".format(nick=nick, chan=chan))

return znc.CONTINUE
return znc.CONTINUE

def is_exempt(self, chan_user):
# Check the other user's status
Expand Down Expand Up @@ -217,7 +217,7 @@ def checkmexempts(self, nick):

# actions get included in scanning
def OnChanAction(self, inick, ichan, msg):
self.OnChanMsg(inick, ichan, msg)
return self.OnChanMsg(inick, ichan, msg)

def OnNick(self, onick, newnick, vchans):
oldnick = onick.GetNick()
Expand Down Expand Up @@ -279,6 +279,8 @@ def OnUserPart(self, channel, message):
if self.nickcount[nick] == {}:
del self.nickcount[nick]
self.PutModule("cleared empty nick")

return znc.CONTINUE

def OnModCommand(self, command):
cmd = command.split()
Expand Down

0 comments on commit 792daad

Please sign in to comment.