diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 91ae8f2e0..8d507f887 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -45,6 +45,8 @@ class IrcMsg(object): """ #__slots__ = ('_args', '_command', '_host', '_nick', '_prefix', '_user') def __init__(self, s='', command='', args=None, prefix='', msg=None): + if not s and not command and not msg: + raise ValueError, 'IRC messages require a command.' if msg: prefix = msg.prefix command = msg.command