Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Oops...

  • Loading branch information...
commit 97bd8905a751832c329715e8cdd854a532a799b1 1 parent 5c28a62
@udonreisen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/xmppbot.py
View
4 src/xmppbot.py
@@ -62,9 +62,9 @@ def handleIncomingGroupPresence(self, presence):
bannedStrings = ['_','(',')','0','1','2','3','4','5','6','7','8','9']
isBot = 0
for string in bannedStrings:
- if user.find(string) != -1: isBot += 1
+ if nick.find(string) != -1: isBot += 1
if isBot > 1:
- self.kick(nickuser, 'Да ты же, сука, бот!')
+ self.kick(nick, 'Да ты же, сука, бот!')
return
if affiliation in ['owner', 'admin']:
self.storage.checkJid(jid, True)
Please sign in to comment.
Something went wrong with that request. Please try again.