Move lusers output to its own function

master
Sven Slootweg 12 years ago
parent b102c99213
commit 2e7c69d502

@ -209,6 +209,8 @@ class user:
self.client.send_numeric("002", ":Your host is %s, running %s." % (config_ownhost, config_version))
self.client.send_numeric("003", ":This server has been running since unknown.")
self.client.send_numeric("004", ":%s %s %s %s" % (config_ownhost, config_version, "", ""))
def send_lusers(self):
self.client.send_numeric("251", ":There are %d users and 0 invisible on 1 server." % len(self.server.users))
self.client.send_numeric("252", "%d :operator(s) online" % 0)
self.client.send_numeric("254", "%d :channel(s) formed" % 0)

Loading…
Cancel
Save