
Untitled
By: a guest on
Aug 19th, 2012 | syntax:
None | size: 1.49 KB | hits: 6 | expires: Never
case "$command" in
PRIVMSG) ## es un mensaje. veremos ahora si es un comando o no.
[[ "$msg" == "${symbol}ping" ]] && irc::privmsg "$chan" "pong"
[[ "$msg" == "${symbol}op"* && "$user" == Rulz ]] && { useri=`echo "$msg" | sed -e 's/^,op//g'` ; irc::raw "MODE $chan +o $useri" }
[[ "$msg" == "${symbol}stfu"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
[[ "$msg" == "${symbol}op"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
[[ "$msg" == "${symbol}stfu"* && "$user" == Rulz ]] && { usere=`echo "$msg" | sed -e 's/^,stfu//g'` ;irc::privmsg "$chan" "STFU bitch" ; irc::raw "MODE $chan -vo+q $usere"}
[[ "$msg" == "${symbol}speak"* && "$user" == Rulz ]] && { usero=`echo "$msg" | sed -e 's/^,stfu//g'` ; irc::raw "MODE $chan -vo+q $usero"}
[[ "$msg" == "${symbol}speak"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
[[ "$msg" == "${symbol}gtfo" && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
[[ "$msg" == "${symbol}gtfo" && "$user" == Rulz ]] && { irc::privmsg "$chan" "Bye bye bitchies" ; irc::raw "QUIT :"; exit ; }
;;
*) ## cualquier cosa.
## no hacemos nada...
;;
esac
done