From ae861d07c9d5a69a8f7dfc2f7914296b2e3ad324 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 13 Mar 2012 10:14:23 +1300 Subject: [PATCH] core changes --- core/irc.py | 1 + core/main.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/core/irc.py b/core/irc.py index b14c828..c7fdfe1 100755 --- a/core/irc.py +++ b/core/irc.py @@ -180,6 +180,7 @@ class IRC(object): def set_nick(self, nick): self.cmd("NICK", [nick]) + self.nick = nick def join(self, channel): self.cmd("JOIN", [channel]) diff --git a/core/main.py b/core/main.py index 041d67e..1b872c3 100755 --- a/core/main.py +++ b/core/main.py @@ -33,6 +33,9 @@ class Input(dict): def notice(msg): conn.cmd('NOTICE', [nick, msg]) + + def cmd(command): + conn.cmd(command) dict.__init__(self, conn=conn, raw=raw, prefix=prefix, command=command, params=params, nick=nick, user=user, host=host,