jaraco / irc

Full-featured Python IRC library for Python.
MIT License
392 stars 87 forks source link

strange log messages MODE requests #20

Closed jaraco closed 8 years ago

jaraco commented 8 years ago

logger data:

#!log

_dispatcher: join
FROM SERVER: :ChanServ!system@chattingaway.com MODE #honbots +qo Inomares_ Inomares_
_dispatcher: all_raw_messages
command: mode, source: ChanServ!system@chattingaway.com, target: #honbots, arguments: [u'+qo', u'Inomares_', u'Inomares_']
_dispatcher: mode
TO SERVER: MODE +qo 
FROM SERVER: :s2games.ca.us.chattingaway.com 401 bsmith +qo :No such nick/channel
_dispatcher: all_raw_messages
command: nosuchnick, source: s2games.ca.us.chattingaway.com, target: bsmith, arguments: [u'+qo', u'No such nick/channel']
_dispatcher: nosuchnick

equivalent irc channel event:

#!irc

00:06 --              | Mode #honbots [+qo Inomares_ Inomares_] by ChanServ  

why is this irc lib acting on mode commands that are triggered by other channel events?


jaraco commented 8 years ago

It's hard to say - looking at the IRC code, I see that a 'mode' command from the server would trigger a call to 'set_mode' or 'clear_mode'. Perhaps your custom bot overrides that method?

It's hard to say without more information, such as what code you're using to invoke the library. Can you re-try with a simple example and paste that here?


Original comment by: Jason R. Coombs

jaraco commented 8 years ago

ok this can be closed. we me derping. I had a on_mode method...


Original comment by: jonRB

jaraco commented 8 years ago

Glad it's working for you.


Original comment by: Jason R. Coombs