diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2017-05-06 10:25:49 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2017-05-06 10:26:36 +0200 |
commit | 78b9b19137a2f9b6bea1a8abb6f569f94b214bc7 (patch) | |
tree | fd68662710c1fab6f139a966d0e1f2bc259f0df1 /miniircd | |
parent | f2424a1074bc2ec30177fcc429f548d1a785f27d (diff) | |
download | miniircd-78b9b19137a2f9b6bea1a8abb6f569f94b214bc7.tar.gz miniircd-78b9b19137a2f9b6bea1a8abb6f569f94b214bc7.zip |
Fix wallops command when given no arguments
As noted by Hanno Foest.
Diffstat (limited to 'miniircd')
-rwxr-xr-x | miniircd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ #! /usr/bin/env python # Hey, Emacs! This is -*-python-*-. # -# Copyright (C) 2003-2016 Joel Rosdahl +# Copyright (C) 2003-2017 Joel Rosdahl # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -480,7 +480,8 @@ class Client(object): def wallops_handler(): if len(arguments) < 1: - self.reply_461(command) + self.reply_461("WALLOPS") + return message = arguments[0] for client in server.clients.values(): client.message(":%s NOTICE %s :Global notice: %s" |