4 # :title: Usermodes plugin
6 # Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
7 # Copyright:: (C) 2007 Giuseppe Bilotta
8 # License:: rbot's licence
11 class UserModesPlugin < Plugin
12 Config.register Config::StringValue.new('irc.usermodes',
14 :desc => "User modes to set when connecting to the server")
16 def help(plugin, topic="")
17 "handles automatic usermode settings on connect. See the config variable irc.usermodes"
21 modes = @bot.config['irc.usermodes']
22 @bot.mode(@bot.nick, modes, '') unless modes.empty?
26 plugin = UserModesPlugin.new