mIRC Home    About    Download    Register    News    Help

Print Thread
#271092 27/11/22 11:58 PM
Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
on *:NOTICE:*:?: {
if $nick isin memoserv { var %meno $16 }
}

alias memoser {
/msg memoserv read %meno
}


i try to read a memo using this little routine
but doesnt work any help?

$16 is number of memo

thnx

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
For one thing, 'var' is a local variable that can't be seen by an alias you call. For another thing, you aren't even calling the alias. Not having tested this to see if $16 really is what you want, here's more like what it should be. In case not every message from memoserv is a message containing a memo number, you want to at least check if $16 is a number. You also may not want to read multiple memos all at the same time. Also, the way you use 'isin' means that this will respond to nicks like emo mos ser etc., but here goes:



Code
on *:NOTICE:*:?: {
if ( ($nick == memoserv) && ($16 isnum 1-)) { memoser $16 }
}

alias memoser {
/msg memoserv read $1
}

Joined: Apr 2005
Posts: 111
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Apr 2005
Posts: 111
preciate for the answer!!!!!!!!!!!! thnx


Link Copied to Clipboard