Project

General

Profile

Actions

Bug #4819

closed

Curly brackets in commented lines is not parsed correctly

Added by westor (GR) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
12/21/2019
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

I build that code and i left my pc idle, when i came back i saw a lot of "} Unknown Command" lines in status window
as i test it a bit when i removed in /qd alias the comments at the end the code stopped printing "} Unknown Command" but i couldn't understand the exact fault of this.

Example Code:

alias -l col { return $+($chr(3),$1,$chr(2),$chr(2),$2-,$chr(2),$chr(2),$chr(3)) }
alias -l qd {
  if ($1 == 1) { return $+($chr(40),$2-,$chr(41)) } ; ()
  if ($1 == 2) { return $+($chr(91),$2-,$chr(93)) } ; []
  if ($1 == 3) { return $+($chr(123),$2-,$chr(125)) } ; {}
  if ($1 == 4) { return $+($chr(60),$2-,$chr(62)) } ; <>
}

ON ^!*:JOIN:#test_chan: {
  haltdef

  var %ip = 127.0.0.1
  var %country = Greece
  var %country_code = GR
  var %region = Attiki
  var %city = Athens
  var %ssl = SSL
  var %proxy VPN

  echo -tc join $chan $prefixsys Joins: $boldify($nick) $iif(%ip,$qd(2,$col(4,%ip))) $iif(%country,$col(4,%country)) $iif(%country_code,$qd(1,$col(4,%country_code))) $iif(%region,$col(4,%region)) $iif(%city,$col(4,%city)) $iif(%ssl,$qd(4,$col(63,%ssl))) $iif(%proxy,$qd(3,$col(4,%proxy)))
}

- Thanks!

Actions #1

Updated by Per Amundsen over 4 years ago

  • Subject changed from AdiIRC returns Unknown Command when using that code to Curly brackets in commented lines is not parsed correctly
  • Status changed from New to Resolved
Actions #2

Updated by Per Amundsen over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF