Method: Libfchat::Fchat#got_VAR
- Defined in:
- lib/libfchat/fchat.rb
#got_VAR(message) ⇒ Object
Store server-side variables
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/libfchat/fchat.rb', line 141 def got_VAR() if ['variable'] == 'chat_max' @chat_max = ['value'] elsif ['variable'] == 'priv_max' @priv_max = ['value'] elsif ['variable'] == 'lfrp_max' @lfrp_max = ['value'] elsif ['variable'] == 'lfrp_flood' @lfrp_flood = ['value'] elsif ['variable'] == 'msg_flood' @msg_flood = ['value'] elsif ['variable'] == 'permissions' = ['value'] else raise "ERROR: Do not know how to handle VAR #{message}" end end |