diff options
Diffstat (limited to 'data/rbot/plugins/bans.rb')
-rw-r--r-- | data/rbot/plugins/bans.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/data/rbot/plugins/bans.rb b/data/rbot/plugins/bans.rb index 17281d4c..73121b7e 100644 --- a/data/rbot/plugins/bans.rb +++ b/data/rbot/plugins/bans.rb @@ -32,10 +32,9 @@ # * fixed regexp usage in requirements for plugin map
# * add proper auth management
-OnJoinAction = Struct.new("OnJoinAction", :host, :action, :channel, :reason)
-BadWordAction = Struct.new("BadWordAction", :regexp, :action, :channel, :timer, :reason)
-WhitelistEntry = Struct.new("WhitelistEntry", :host, :channel)
-
+define_structure :OnJoinAction, :host, :action, :channel, :reason
+define_structure :BadWordAction, :regexp, :action, :channel, :timer, :reason
+define_structure :WhitelistEntry, :host, :channel
class BansPlugin < Plugin
|