Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created May 12, 2009 14:08
Show Gist options
  • Save sarahhodne/110502 to your computer and use it in GitHub Desktop.
Save sarahhodne/110502 to your computer and use it in GitHub Desktop.
class IrcBotd
def register(modname, functions)
functions.each do |function|
function.downcase!
puts "#{modname} -> #{function}"
case function
when 'quit'
@mods[modname][:function][:quit] = true
when # Cursor was here
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment