core changes
This commit is contained in:
parent
f1815037c0
commit
ae861d07c9
2 changed files with 4 additions and 0 deletions
|
@ -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])
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in a new issue