Id: 9817; Nick: Dor; Timestamp: 2008-04-27 12:59:25; Pasted as: mIRC
Description: weird
1
2
3
4
5
6
7
8
9
    if (NICK == $1) {
      echo -a nick triggerd
      if ($istok(%ircd.usednicks,$2,32)) { %a 433 * $2 Nickname is already in use | echo -a halted | halt }
      if (!$regex($2,/^([][A-Za-z\\^`{|}-][][\w\\^`{|}-]*)$/) { %a 432 * #2 Bad Nickname: Illegal Characters | echo -a halted2 | halt }
      echo -a reached.
      set %ircd.usednicks %ircd.usednicks $2
      writeini $sockname.ini general nick $2
    }
 
Parentheses warning on line 4:
if (!$regex($2,/^([][A-Za-z\\^`{|}-][][\w\\^`{|}-]*)$/) { %a 432 * #2 Bad Nickname: Illegal Characters | echo -a halted2 | halt }
There is 3 (, but only 2 ).
Parsed for bracket errors and indented:
1
2
3
4
5
6
7
8
9
if (NICK == $1) {
  echo -a nick triggerd
  if ($istok(%ircd.usednicks,$2,32)) { %a 433 * $2 Nickname is already in use | echo -a halted | halt }
  if (!$regex($2,/^([][A-Za-z\\^`{|}-][][\w\\^`{|}-]*)$/) { %a 432 * #2 Bad Nickname: Illegal Characters | echo -a halted2 | halt }
  echo -a reached.
  set %ircd.usednicks %ircd.usednicks $2
  writeini $sockname.ini general nick $2
}
 
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)