Class: Irc

Inherits:
Object show all
Defined in:
lib/xiki/irc.rb

Class Method Summary collapse

Class Method Details

.logonObject



11
12
13
14
# File 'lib/xiki/irc.rb', line 11

def self.logon
  View.handle_bar
  $el.el4r_lisp_eval "(erc :server \"irc.freenode.net\" :nick \"#{@@username}\")"
end


3
4
5
6
7
8
9
# File 'lib/xiki/irc.rb', line 3

def self.menu
  "
  - .logon
  - room (o): /j merb
  - identify (o): /m nickserv IDENTIFY #{self.pw}
  "
end

.pwObject



19
# File 'lib/xiki/irc.rb', line 19

def self.pw;  @@pw;  end

.pw=(to) ⇒ Object



20
# File 'lib/xiki/irc.rb', line 20

def self.pw= to;  @@pw = to;  end

.usernameObject



17
# File 'lib/xiki/irc.rb', line 17

def self.username;  @@username;  end

.username=(to) ⇒ Object



16
# File 'lib/xiki/irc.rb', line 16

def self.username= to;  @@username = to;  end