Moved commandArgs outside of __init__.

This commit is contained in:
Jeremy Fincher 2003-08-23 06:05:01 +00:00
parent 3fe81ebdcb
commit 0743b3eb0a

View File

@ -509,11 +509,11 @@ class PrivmsgRegexp(Privmsg):
threaded = False # Again, like Privmsg... threaded = False # Again, like Privmsg...
flags = re.I flags = re.I
onlyFirstMatch = False onlyFirstMatch = False
commandArgs = ['self', 'irc', 'msg', 'match']
def __init__(self): def __init__(self):
Privmsg.__init__(self) Privmsg.__init__(self)
self.Proxy = IrcObjectProxyRegexp self.Proxy = IrcObjectProxyRegexp
self.res = [] self.res = []
self.commandArgs = ['self', 'irc', 'msg', 'match']
#for name, value in self.__class__.__dict__.iteritems(): #for name, value in self.__class__.__dict__.iteritems():
for name, value in self.__class__.__dict__.items(): for name, value in self.__class__.__dict__.items():
value = getattr(self, name) value = getattr(self, name)