Advertisement
Guest User

Untitled

a guest
Jan 6th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. 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