From fc734e8d9f9280f0416f6677befd6b7289e21586 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 18 Nov 2011 13:45:09 +0100 Subject: Add support for WALLOPS --- CHANGES | 1 + miniircd | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES b/CHANGES index edf9b5c..fcc97eb 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ UNRELEASED * Added support for channel keys. * 422 message is now sent after registration when no MOTD is available. + * Added support for WALLOPS command. 0.3 2011-08-25 diff --git a/miniircd b/miniircd index d2ddc83..9baa6da 100755 --- a/miniircd +++ b/miniircd @@ -405,6 +405,14 @@ class Client(object): else: self.reply("442 %s :You're not on that channel" % channelname) + def wallops_handler(): + if len(arguments) < 1: + self.reply_461(command) + message = arguments[0] + for client in server.clients.values(): + client.message(":%s NOTICE %s :Global notice: %s" + % (self.prefix, client.nickname, message)) + def who_handler(): if len(arguments) < 1: return @@ -454,6 +462,7 @@ class Client(object): "PRIVMSG": notice_and_privmsg_handler, "QUIT": quit_handler, "TOPIC": topic_handler, + "WALLOPS": wallops_handler, "WHO": who_handler, "WHOIS": whois_handler, } -- cgit v1.2.3