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,