Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Error on command receive using irc backend #71

Closed
nvdk opened this issue Sep 27, 2012 · 2 comments
Closed

Unhandled Error on command receive using irc backend #71

nvdk opened this issue Sep 27, 2012 · 2 comments

Comments

@nvdk
Copy link

nvdk commented Sep 27, 2012

typing !help in irc results in an unhandled error

Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/irc.py", line 2413, in dataReceived
basic.LineReceiver.dataReceived(self, data.replace('\r', ''))
File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 564, in dataReceived
why = self.lineReceived(line)
File "/home/nvdk/err/errbot/backends/irc.py", line 44, in lineReceived
super(IRCConnection, self).lineReceived(line)
File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/irc.py", line 2421, in lineReceived
self.handleCommand(command, prefix, params)
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/irc.py", line 2465, in handleCommand
method(prefix, params)
File "/home/nvdk/err/errbot/backends/irc.py", line 55, in irc_PRIVMSG
msg.setFrom(fr + '@' + prefix)
File "/home/nvdk/err/errbot/backends/base.py", line 83, in setFrom
self.fr = Identifier(fr)
File "/home/nvdk/err/errbot/backends/base.py", line 24, in init
self.node, self.domain = jid.split('@')
exceptions.ValueError: too many values to unpack

@gbin
Copy link
Member

gbin commented Sep 27, 2012

Hi, thanks a lot for spotting this, The IRC backend was lagging a little bit for the identity format.
I made a serie of corrections here e2325d3, can you test and tell me if it improves it ?
Thanks !

@nvdk
Copy link
Author

nvdk commented Sep 27, 2012

seems to work fine now, thanks!

@nvdk nvdk closed this as completed Sep 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants