mIRC Home    About    Download    Register    News    Help

Print Thread
#191124 03/12/07 04:21 AM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
Code:
 
on ^!*:text:*:?: $banjirian5 $1-
alias banjirian5 {
  if ($regex($1-,/\b(fuck|suck)\b/Si)) {
    If ($comchan($nick,0) > 0) {
      Var %a = $v1 , %b = $nick
      While %a {
        Var %c = $comchan(%b,%a)
        If (%b isreg %c) && ($me isop %c) {
          ban -k %c %b %ban.level swearing on private
        }
        dec %a
      }
    }
  }
}


$1- Unknown command.

- $1- = text msg

didnt work.. some body please help me smile .. thanks

Last edited by BanJirian; 03/12/07 04:24 AM.
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
You're calling an alias, get rid of the '$' infront of $banjirian5 $1-

Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
thats all ? thats mean any event that calling alias should`nt put "$" .. Can you explain why .. Then what is the diff between $aliasname, aliasname, and .aliasname .. and when should we using "$" , "." and "aliasname"

on :join: aliasname
on :notify: aliasname2
on :start: alias name3

thanks

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
$aliasname calls the alias as an identifier, and expects information to be returned to the calling routine via the return command

aliasname (and /aliasname) both call the alias like your code actually should do

.aliasname does the same thing as above, but the . makes the commands silent.


Link Copied to Clipboard