Permalink
Browse files

\!topic 'your topic here' works, no need 4 ops

  • Loading branch information...
1 parent 74b3afc commit 4a1f4a94b799839c7982abed7453bd7d94ac7a2c @jamiew committed Apr 12, 2009
Showing with 6 additions and 4 deletions.
  1. +6 −4 fatbot.rb
View
@@ -16,10 +16,12 @@
end
-# just a simple superuserish check
+# just a simple check for FAT Lab fellows
# count on NickServ for security :x
def ops?(nick)
- ['jamiew','ttttbx','fi5e','randofo','bekathwia','Geraldine_'].include?(nick)
+ # ['jamiew','ttttbx','fi5e','randofo','bekathwia','Geraldine','Geraldine_'].include?(nick)
+ # w/e, everyone for now
+ true
end
@@ -68,8 +70,8 @@ def ops?(nick)
msg channel, "/me gives #{nick} a #{tacos[(rand*tacos.length).floor]} taco"
end
-# change the topic (ops)
+# change the topic by proxy (for bot-ops)
on :channel, /^!topic (.*)/ do
- msg channel, "/topic #fatlab #{match[0]}" if ops?(nick)
+ topic(channel, "#{match[0]} [#{nick}]") if ops?(nick)
end

0 comments on commit 4a1f4a9

Please sign in to comment.