Bug in lyntin 4
"S.Aeschbacher" <[email protected]>
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
Hi
there is a bug in the handling of the $ sign (cvs checkout some minutes ago ;)
Description:
When entering a $ sign at the end of a line, an exceptions is thrown. Obviously
the checks if it is a variable or just a plain $ don't take into consideration
that $ can be followed by an empty string.
Traceback:
help $
WARNING: Unhandled error encountered (1 out of 20).
engine: unhandled error in engine.
Traceback (most recent call last):
File "/usr/local/lib/python2.3/site-packages/lyntin/engine.py", line 667, in runengine
e.execute()
File "/usr/local/lib/python2.3/site-packages/lyntin/event.py", line 134, in execute
exported.lyntin_command(self._input, internal=self._internal, session=self._ses)
File "/usr/local/lib/python2.3/site-packages/lyntin/exported.py", line 89, in lyntin_command
get_engine().handleUserData(text, internal)
File "/usr/local/lib/python2.3/site-packages/lyntin/engine.py", line 458, in handleUserData
session.handleUserData(mem, internal)
File "/usr/local/lib/python2.3/site-packages/lyntin/session.py", line 353, in handleUserData
mappingfunc=exported.filter_mapper)
File "/usr/local/lib/python2.3/site-packages/lyntin/exported.py", line 666, in hook_spam
output = mem(argmap)
File "/usr/local/lib/python2.3/site-packages/lyntin/modules/variable.py", line 388, in userfilter
varexpansion = self.expand_command(ses, text)
File "/usr/local/lib/python2.3/site-packages/lyntin/modules/variable.py", line 307, in expand_command
text = self._global.expand_command(text)
File "/usr/local/lib/python2.3/site-packages/lyntin/modules/variable.py", line 127, in expand_command
return utils.expand_vars(text, self._variables)
File "/usr/local/lib/python2.3/site-packages/lyntin/utils.py", line 903, in expand_vars
if text[j] == "{":
IndexError: string index out of range
regards
Stefan
P.S. I'm not subscribed to the list, so please CC: me
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/