From 6bcae9309e77a1f1e77f14f6184102b36517ca61 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 15 Dec 2004 07:01:50 +0000 Subject: [PATCH] Added error helper function. --- src/ircmsgs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 2f6ea639e..83a3e82ba 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -759,4 +759,7 @@ def ison(nick, prefix='', msg=None): prefix = msg.prefix return IrcMsg(prefix=prefix, command='ISON', args=(nick,), msg=msg) +def error(s, msg=None): + return IrcMsg(command='ERROR', args=(s,), msg=msg) + # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: