cinch 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cinch/irc.rb +2 -2
- data/lib/cinch/user.rb +5 -0
- data/lib/cinch/version.rb +1 -1
- metadata +2 -2
data/lib/cinch/irc.rb
CHANGED
@@ -604,8 +604,8 @@ module Cinch
|
|
604
604
|
# @since 2.0.0
|
605
605
|
def on_301(msg, events)
|
606
606
|
# RPL_AWAY
|
607
|
-
user = User(msg.params
|
608
|
-
away = msg.
|
607
|
+
user = User(msg.params[1])
|
608
|
+
away = msg.params.last
|
609
609
|
|
610
610
|
if @whois_updates[user]
|
611
611
|
update_whois(user, {:away => away})
|
data/lib/cinch/user.rb
CHANGED
@@ -59,6 +59,10 @@ module Cinch
|
|
59
59
|
attr(:authname, true, false)
|
60
60
|
end
|
61
61
|
|
62
|
+
def away
|
63
|
+
attr(:away, true, false)
|
64
|
+
end
|
65
|
+
|
62
66
|
def idle
|
63
67
|
attr(:idle, true, false)
|
64
68
|
end
|
@@ -304,6 +308,7 @@ module Cinch
|
|
304
308
|
:idle => 0,
|
305
309
|
:secure? => false,
|
306
310
|
:oper? => false,
|
311
|
+
:away => nil,
|
307
312
|
:channels => [],
|
308
313
|
}.merge(values).each do |attr, value|
|
309
314
|
sync(attr, value, true)
|
data/lib/cinch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
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: 2015-
|
12
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple, friendly DSL for creating IRC bots
|
15
15
|
email:
|