Advertisement
Aha2Y

Untitled

Mar 6th, 2012
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.23 KB | None | 0 0
  1. on *:text:@calc*:#:{
  2.   if ($2 == $null) { msg $chan [CALC] You have forgot to add a number! }
  3.   if ($regex($2-,/[!@#$&\x2C\w]/i)) {
  4.   msg $chan [CALC] Parse error, $2- = Invalid! }
  5.   else { msg $chan [Calc] $2- = $calc($2-)
  6.   }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement