X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fscript.rb;fp=data%2Frbot%2Fplugins%2Fscript.rb;h=38bb3134828002cf0e356f9532e70e7f734f1e35;hb=ac39a3b330cbf7c4b65ba907783364b63fb109b3;hp=29afa20a62e183fea66450382ef1a91722b1bd21;hpb=bf03d9f2b695772212abee81d405483c5c374633;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 29afa20a..38bb3134 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -13,9 +13,7 @@ # plugin. You can create them directly in an IRC channel, and invoke them just # like normal rbot plugins. - -Command = Struct.new( "Command", :code, :nick, :created, :channel ) - +define_structure :Command, :code, :nick, :created, :channel class ScriptPlugin < Plugin