Skip to content
Browse files

pentabot check_group function added

  • Loading branch information...
1 parent 60ab2e6 commit 946fd305b9d9f111ac79fa11e524bf09b912586d @koeart koeart committed Oct 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 pentabot.py
View
4 pentabot.py
@@ -45,11 +45,11 @@ def check_group( self, mess, args):
Usage: check_group jid group
"""
args = args.strip().split(' ')
- in_group = 0
+ in_group = "0"
jid = args[0]
groups = self.conn.Roster.getGroups(jid)
if args[1] in groups:
- in_group = 1
+ in_group = "1"
else:
pass
return "%s" % in_group

0 comments on commit 946fd30

Please sign in to comment.
Something went wrong with that request. Please try again.