/parseline and on PARSELINE - 03/09/15 01:17 AM
With /parseline, -t('as text') or -b('as bvar') is required. This is inconsistant with other mIRC commands that attempt to assume the nature of the input
With /parseline new lines in an input do not delimit messages to be parsed
With on PARSELINE, theres quite a few inconsistancies I'm not sure how to explain them other than showing through code:
I've discovered more weirdness but am still trying to isolate/understand whats causing it before making a post
Code:
bset -t &example 1 :Example!Example@Example.com PRIVMSG $me :Example ; Results in an error //parseline -iqp $bvar(&example, 1-).text //parseline -iqp &example
With /parseline new lines in an input do not delimit messages to be parsed
Code:
bset -t &example 1 :Example!Example@Example.com PRIVMSG $me :Example $+ $crlf $+ :Example!Example@Example.com PRIVMSG $me :Example ;; Assumes the entirety of the input as a single message //parseline -iqpt $bvar(&example, 1-).text //parseline -iqpb &example
With on PARSELINE, theres quite a few inconsistancies I'm not sure how to explain them other than showing through code:
Code:
; @tags=something :Nick!ident@host.com PRIVMSG #someChannel :text on $*:PARSELINE:in:/(@\S+) \x3A(([^\s!@]+)![^\s!@]+@[^\s]+) PRIVMSG (#\S+) \x3A.+$/:{ var %tags = $regml(1) var %host = $regml(2) var %nick = $regml(3) var %chan = $regml(4) if (%nick !ison %chan) { parseline -iqptn : $+ %host JOIN : $+ %chan parseline -iqptn :example!example@example.com MODE %chan +ov %nick %nick parseline -iqptn $parseline haltdef halt } } If the user is not on the specified channel, this should: queue a JOIN event to the channel to be processed queue a MODE event to add +ov to the user to be processed re-queue the message received to be precoessed halt the processing of the current line being parsed What actually happens: JOIN isn't processed MODE and the original message get processed The internal processing doesn't get halted resulting in a loop.
I've discovered more weirdness but am still trying to isolate/understand whats causing it before making a post