core changes

This commit is contained in:
Luke Rogers 2012-03-13 10:14:23 +13:00
parent f1815037c0
commit ae861d07c9
2 changed files with 4 additions and 0 deletions

View file

@ -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])

View file

@ -34,6 +34,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,
paraml=paraml, msg=msg, server=conn.server, chan=chan,