mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Fix for jamessan's bug.
This commit is contained in:
parent
b1d46cc8a3
commit
04a6fb1d4d
@ -458,8 +458,10 @@ class Creator(object):
|
|||||||
raise ValueError, 'Invalid command on line %s: %s' % (lineno, command)
|
raise ValueError, 'Invalid command on line %s: %s' % (lineno, command)
|
||||||
|
|
||||||
class IrcUserCreator(Creator):
|
class IrcUserCreator(Creator):
|
||||||
|
u = None
|
||||||
def __init__(self, users):
|
def __init__(self, users):
|
||||||
self.u = IrcUser()
|
if self.u is None:
|
||||||
|
IrcUserCreator.u = IrcUser()
|
||||||
self.users = users
|
self.users = users
|
||||||
|
|
||||||
def user(self, rest, lineno):
|
def user(self, rest, lineno):
|
||||||
@ -511,7 +513,7 @@ class IrcUserCreator(Creator):
|
|||||||
# to our lower-numbered users.
|
# to our lower-numbered users.
|
||||||
self.u.hostmasks[:] = []
|
self.u.hostmasks[:] = []
|
||||||
self.users.setUser(self.u)
|
self.users.setUser(self.u)
|
||||||
IrcUserCreator.id = None
|
IrcUserCreator.u = None
|
||||||
|
|
||||||
class IrcChannelCreator(Creator):
|
class IrcChannelCreator(Creator):
|
||||||
name = None
|
name = None
|
||||||
|
Loading…
Reference in New Issue
Block a user