mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Added watch and caught some possible errors.
This commit is contained in:
parent
685eda4a9f
commit
afce0547e1
@ -341,6 +341,7 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
'kicklen': int,
|
'kicklen': int,
|
||||||
'awaylen': int,
|
'awaylen': int,
|
||||||
'silence': int,
|
'silence': int,
|
||||||
|
'watch': int, # DynastyNet.
|
||||||
})
|
})
|
||||||
def _prefixParser(s):
|
def _prefixParser(s):
|
||||||
if ')' in s:
|
if ')' in s:
|
||||||
@ -358,7 +359,11 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
if '=' in arg:
|
if '=' in arg:
|
||||||
(name, value) = arg.split('=', 1)
|
(name, value) = arg.split('=', 1)
|
||||||
converter = self._005converters.get(name, lambda x: x)
|
converter = self._005converters.get(name, lambda x: x)
|
||||||
self.supported[name] = converter(value)
|
try:
|
||||||
|
self.supported[name] = converter(value)
|
||||||
|
except Exception, e:
|
||||||
|
log.exception('Uncaught exception in 005 converter:')
|
||||||
|
log.error('Name: %s, Converter: %s', name, converter)
|
||||||
else:
|
else:
|
||||||
self.supported[arg] = None
|
self.supported[arg] = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user