hector-secret-channels 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hector/commands/whois.rb +16 -0
- data/lib/hector/secret_channels.rb +2 -0
- metadata +58 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
module Hector
|
2
|
+
module Commands
|
3
|
+
module Whois
|
4
|
+
def respond_to_whois_for(destination, session)
|
5
|
+
respond_with("301", session.nickname, :text => session.away_message) if session.away?
|
6
|
+
respond_with("311", destination, session.nickname, session.whois)
|
7
|
+
unless channels.empty? || session.channels.empty?
|
8
|
+
mutual_channels = channels & session.channels
|
9
|
+
respond_with("319", destination, session.nickname, :text => mutual_channels.map { |c| c.name }.join(" "))
|
10
|
+
end
|
11
|
+
respond_with("312", destination, session.nickname, Hector.server_name, :text => "Hector")
|
12
|
+
respond_with("317", destination, session.nickname, session.seconds_idle, session.created_at, :text => "seconds idle, signon time")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hector-secret-channels
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ross Paffett
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-11 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: hector
|
16
|
+
requirement: &70346745184340 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70346745184340
|
25
|
+
description: A Hector extension which hides channels from people who are not in them
|
26
|
+
email:
|
27
|
+
- ross@rosspaffett.com
|
28
|
+
executables: []
|
29
|
+
extensions: []
|
30
|
+
extra_rdoc_files: []
|
31
|
+
files:
|
32
|
+
- lib/hector/commands/whois.rb
|
33
|
+
- lib/hector/secret_channels.rb
|
34
|
+
homepage: http://github.com/raws/hector-secret-channels
|
35
|
+
licenses: []
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
requirements: []
|
53
|
+
rubyforge_project:
|
54
|
+
rubygems_version: 1.8.7
|
55
|
+
signing_key:
|
56
|
+
specification_version: 3
|
57
|
+
summary: Secret channels for Hector
|
58
|
+
test_files: []
|