Specific "n%" for WHOX as to only return nicks.

This commit is contained in:
jesopo 2018-09-13 10:25:33 +01:00
parent 6db97c7df5
commit 36fe1fa0d5
2 changed files with 3 additions and 4 deletions

View file

@ -214,7 +214,7 @@ class LineHandler(object):
# on-join user list has finished # on-join user list has finished
def handle_366(self, event): def handle_366(self, event):
event["server"].send_whox(event["args"][1], "ahnrtu", "111") event["server"].send_whox(event["args"][1], "n", "ahnrtu", "111")
# on user joining channel # on user joining channel
def join(self, event): def join(self, event):

View file

@ -389,7 +389,6 @@ class Server(object):
"" if server == None else " :%s" % server)) "" if server == None else " :%s" % server))
def send_who(self, filter=None): def send_who(self, filter=None):
self.send("WHO%s" % ("" if filter == None else " %s" % filter)) self.send("WHO%s" % ("" if filter == None else " %s" % filter))
def send_whox(self, filter, flags, label=None): def send_whox(self, mask, filter, fields, label=None):
self.send("WHO %s %s%s" % (filter, self.send("WHO %s %s%%%%s%s" % (mask, filter, fields,
"%"+flags if flags else "",
","+label if label else "")) ","+label if label else ""))