tkellem 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/tkellem/irc_message.rb +3 -3
- data/lib/tkellem/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/tkellem/irc_message.rb
CHANGED
@@ -94,7 +94,7 @@ class IrcMessage < Struct.new(:prefix, :command, :args, :ctcp)
|
|
94
94
|
def readdress_to(nick)
|
95
95
|
privmsg = args.first[0] != '#'[0]
|
96
96
|
|
97
|
-
if
|
97
|
+
if prefix
|
98
98
|
# to this user
|
99
99
|
if privmsg
|
100
100
|
args[0] = nick
|
@@ -107,9 +107,9 @@ class IrcMessage < Struct.new(:prefix, :command, :args, :ctcp)
|
|
107
107
|
# a one-on-one chat -- every client i've seen doesn't know how to
|
108
108
|
# display messages from themselves here, so we fake it by just
|
109
109
|
# adding an arrow and pretending the other user said it. shame.
|
110
|
-
prefix =
|
110
|
+
prefix = args.first
|
111
111
|
args[0] = nick
|
112
|
-
args[-1] = "-> #{
|
112
|
+
args[-1] = "-> #{args.last}"
|
113
113
|
else
|
114
114
|
# it's a room, we can just replay
|
115
115
|
prefix = nick
|
data/lib/tkellem/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkellem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
segments:
|
188
188
|
- 0
|
189
|
-
hash:
|
189
|
+
hash: -467999767217112565
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
none: false
|
192
192
|
requirements:
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
hash:
|
198
|
+
hash: -467999767217112565
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
201
|
rubygems_version: 1.8.23
|