mIRC Home    About    Download    Register    News    Help

Print Thread
#31503 22/06/03 04:49 PM
Joined: Jan 2003
Posts: 24
C
Codeq Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2003
Posts: 24
hi

while working with $submenu i found a behaviour that seems to be a bug within $submenu.

Code:
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=2966


load 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


--
Codeq (J. Diel)
euIRCnet LocOp (irc.hes.de.euirc.net)
http://coding-board.de | www.euirc.net
#31504 22/06/03 04:57 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Quote:
this is a sample ripped off a much bigger script.

you want us to help you with something you ripped=\?


new username: tidy_trax
#31505 22/06/03 05:04 PM
Joined: Jan 2003
Posts: 24
C
Codeq Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2003
Posts: 24
i made the part of my script more simple to demonstrate where the bug is... ive used a lot of vars and u'd properly say there must be sth wrong with my vars... thats all why i ripped that part off the whole script..

if u wanna have a look at the whole one i can post it... but it has about 640 lines...


--
Codeq (J. Diel)
euIRCnet LocOp (irc.hes.de.euirc.net)
http://coding-board.de | www.euirc.net
#31506 28/06/03 02:27 PM
Joined: Jan 2003
Posts: 24
C
Codeq Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2003
Posts: 24
so, whats up?
does anyone agree with me? am i wrong? u dont know a net where to use {} within nicks?

what is it?..


--
Codeq (J. Diel)
euIRCnet LocOp (irc.hes.de.euirc.net)
http://coding-board.de | www.euirc.net

Link Copied to Clipboard