spunk 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/spunk/base_parser.rb +8 -0
  2. metadata +1 -1
@@ -8,6 +8,14 @@ module Spunk
8
8
  bot.join_room(room)
9
9
  end
10
10
  end
11
+ if command =~ /^KICK (#\S+)\W(.*)\W?/
12
+ # Remove from array of joined_rooms when kicked
13
+ nick = $2
14
+ if bot.nickname == nick
15
+ room = [$1]
16
+ bot.joined_rooms -= room
17
+ end
18
+ end
11
19
  end
12
20
  end
13
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: