hi
while working with $submenu i found a behaviour that seems to be a bug within $submenu.
menu Nicklist {
-
Buug
.$submenu($pop($1))
-
}
alias -l pop {
;This doesnt work with an { at the beginning
;var %gline.popup_nicks = $snick($chan,1)
;This is the solving of my problem ...
var %gline.popup_nicks = $replace($snick($chan,1),$chr(123),$chr(40),$chr(125),$chr(41))
if ($1 == begin) return $null
if ($1 == 1) {
return Test1... %gline.popup_nicks : test1
}
if ($1 == 2) {
return ... : test1
}
if ($1 == 3) {
return ... : test1
}
while ($1 <= $calc(%gline.user_reason.count + 4)) {
return ... : test1
}
if ($1 == end) return $null
}
alias -l test1 { echo -s Done. }
this is a sample ripped off a much bigger script. so dont look at the while() loops within the alias pop i relly need it, and plz dont gimme suggestions how to make different nicklist pops..
here u can find the whole script if u need have a look at
http://www.coding-board.de/board/showthread.php?s=&threadid=2966load that sample plz and rightclick onto a normal nick.. ull see the nick will be displayed correctly. But if someone has a nick beginning or ending with a { } braket nothin will be displayd within that nicklist popup. and nothing is going to be executed if u press the left button
grz Codeq