Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: None  |  size: 1.49 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. case "$command" in
  2.  
  3.                 PRIVMSG) ## es un mensaje. veremos ahora si es un comando o no.
  4.  
  5.                         [[ "$msg" == "${symbol}ping" ]] && irc::privmsg "$chan" "pong"
  6.                         [[ "$msg" == "${symbol}op"* && "$user" == Rulz ]] && { useri=`echo "$msg" | sed -e 's/^,op//g'` ; irc::raw "MODE $chan +o $useri" }
  7.                         [[ "$msg" == "${symbol}stfu"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
  8.                         [[ "$msg" == "${symbol}op"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
  9.                         [[ "$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"}
  10.                         [[ "$msg" == "${symbol}speak"* && "$user" == Rulz ]] && { usero=`echo "$msg" | sed -e 's/^,stfu//g'` ; irc::raw "MODE $chan -vo+q $usero"}
  11.                         [[ "$msg" == "${symbol}speak"* && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
  12.                         [[ "$msg" == "${symbol}gtfo" && "$user" != Rulz ]] && irc::privmsg "$chan" "You haven't got permissions to do this."
  13.                         [[ "$msg" == "${symbol}gtfo" && "$user" == Rulz ]] && { irc::privmsg "$chan" "Bye bye bitchies" ; irc::raw "QUIT :"; exit ; }
  14.  
  15.                 ;;
  16.                 *) ## cualquier cosa.
  17.                         ## no hacemos nada...
  18.                 ;;
  19.         esac
  20.  
  21.         done