Permalink
Browse files

changed the names request to return a list

  • Loading branch information...
brownan committed Sep 13, 2012
1 parent 6101409 commit 246442a82527b2b18771253426414960cd9320e6
Showing with 3 additions and 2 deletions.
  1. +1 −1 abbott/plugins/admin.py
  2. +2 −1 abbott/plugins/ircutil.py
View
@@ -128,7 +128,7 @@ def _has_op(self, channel):
defer.returnValue( self.have_op[channel] )
except KeyError:
# determine if we have OP
- names_list = (yield self.transport.issue_request("irc.names",channel)).split()
+ names_list = (yield self.transport.issue_request("irc.names",channel))
nick = (yield self.transport.issue_request("irc.getnick"))
@@ -178,9 +178,10 @@ def on_event_irc_on_unknown(self, event):
elif command == "RPL_ENDOFNAMES":
channel = event.params[1]
names = " ".join(self.currentinfo)
+ name_list = names.split()
self.currentinfo = []
for d in self.pendingwhoises.pop(channel):
- d.callback(names)
+ d.callback(name_list)
@defer.inlineCallbacks

0 comments on commit 246442a

Please sign in to comment.