mIRC Home    About    Download    Register    News    Help

Print Thread
#270027 13/03/22 09:45 AM
Joined: Apr 2005
Posts: 75
X
Babel fish
OP Offline
Babel fish
X
Joined: Apr 2005
Posts: 75
if $numeric = 352 { set %nicks $6 | $meop(%Nicks) | .echo -a 0,4 wr $6 }

alias meop {
if %nicks isop $chan { .echo -a not allowed }
}

when i use the who # and the nick its op , i want send a msg to block

gthnx

XGamerAMD #270030 14/03/22 08:22 AM
Joined: Jan 2004
Posts: 1,834
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,834
since you call this from a raw numeric where $chan is not defined, you'll need to either find the channel name as one of the other parameters, or send it as a variable.

In this case, the channelname is $2 so you can pass $2 and $6 to your alias, and not use $chan at all.

Also note that $7 contains the @, so you could use
if (@ isin $7) instead of using ISOP, though it's a little more complicated if you need to recognize other channel modes as being op, such as when someone has & super@op but not @normal@op

maroon #270031 14/03/22 10:50 AM
Joined: Apr 2005
Posts: 75
X
Babel fish
OP Offline
Babel fish
X
Joined: Apr 2005
Posts: 75
thnx and example?

XGamerAMD #270033 15/03/22 05:37 AM
Joined: Jan 2004
Posts: 1,834
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,834
Code
raw 352:*:{
  if (@ isin $7) echo -g $2 message goes here mentioning channel $2 and nick $6
  if ($6 isop $2) echo -g $2 message goes here mentioning channel $2 and nick $6 
}

maroon #270034 15/03/22 07:52 AM
Joined: Apr 2005
Posts: 75
X
Babel fish
OP Offline
Babel fish
X
Joined: Apr 2005
Posts: 75
thnx so much


Link Copied to Clipboard