Skip to content
Browse files

changed the names request to return a list

  • Loading branch information...
1 parent 6101409 commit 246442a82527b2b18771253426414960cd9320e6 @brownan committed
Showing with 3 additions and 2 deletions.
  1. +1 −1 abbott/plugins/admin.py
  2. +2 −1 abbott/plugins/ircutil.py
View
2 abbott/plugins/admin.py
@@ -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"))
View
3 abbott/plugins/ircutil.py
@@ -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.
Something went wrong with that request. Please try again.