cinchrb / cinch

The IRC Bot Building Framework
http://www.rubydoc.info/gems/cinch
MIT License
1k stars 180 forks source link

Fix bugs in tracking bot's own usermodes #116

Closed Elberet closed 11 years ago

Elberet commented 11 years ago

These changes fix two bugs in how the bot tracks its own usermodes:

  1. The @modes array retains its values between reconnect attempts; this results in modes not being set when the bot reconnects to IRC.
  2. When actively setting modes, modes are added a second time to @modes when Cinch::IRC handles the MODE message.
Elberet commented 11 years ago

Now indenting with spaces, as requested. :smile:

dominikh commented 11 years ago

Merged, thanks :)