This commit is contained in:
Ryan Hitchman 2010-03-04 22:04:57 -07:00
parent c396be96d2
commit 1ea6594785
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,12 @@ class Input(dict):
params=params, nick=nick, user=user, host=host, params=params, nick=nick, user=user, host=host,
paraml=paraml, msg=msg, server=conn.server, chan=chan, paraml=paraml, msg=msg, server=conn.server, chan=chan,
say=say, reply=reply, pm=pm, bot=bot) say=say, reply=reply, pm=pm, bot=bot)
self.__dict__ = self # permits attribute access to values
def __getattr__(self, key):
return self[key]
def __setattr__(self, key value):
self[key] = value
def run(func, input): def run(func, input):