galador-isaac 0.3.0 → 0.3.1
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.
- data/isaac.gemspec +1 -1
- data/lib/isaac.rb +2 -2
- metadata +1 -1
data/isaac.gemspec
CHANGED
data/lib/isaac.rb
CHANGED
@@ -11,7 +11,7 @@ module Isaac
|
|
11
11
|
|
12
12
|
class Bot
|
13
13
|
attr_accessor :config, :irc, :nick, :channel, :message, :userhost, :match,
|
14
|
-
:error
|
14
|
+
:error, :newnick
|
15
15
|
|
16
16
|
def initialize(&b)
|
17
17
|
@events = {}
|
@@ -157,7 +157,7 @@ module Isaac
|
|
157
157
|
@bot.dispatch(type, env)
|
158
158
|
when /(^:(\S+)!(\S+) )?NICK (\S+)/
|
159
159
|
env = { :nick => $2, :userhost => $3, :newnick => $4 }
|
160
|
-
if env[:newnick][0] == ":"
|
160
|
+
if env[:newnick][0] == 58 || env[:newnick][0] == ":"
|
161
161
|
# Seems Unreal adds a colon before nick changes. Don't think
|
162
162
|
# this is required by the RFC, but it's easy to fix it. :/
|
163
163
|
env[:newnick].gsub!(":", "")
|