Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i have this irc script: http://pastebin.com/VXQaQvFb - the "def handle_server_input(s)" is the fucntion for handling commands. i have written a regex for checking if the admin (me (dida)) does a command, thats the "when /^:dida![^@]+@[^ ]+ PRIVMSG #{@channel} :(.+)$/" when function. there's another "when" after this, that should be for user-commands, but unfortunately that does not seem to work. @dat[0] seems to be the username, but i can not get the message from anywhere.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement