Module: Botbckt::Utilities

Included in:
Command
Defined in:
lib/botbckt/utilities.rb

Instance Method Summary collapse

Instance Method Details

#freenode_split(str) ⇒ Object

Splits a Freenode user string into a login, user, hostmask tuple

Parameters

str<String>

The user string to split



10
11
12
# File 'lib/botbckt/utilities.rb', line 10

def freenode_split(str)
  str.scan(/^([^!]+)!n=([^@]+)@(.*)$/).flatten!
end