mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Once an event-block has finished, $msgtags is not cleared.


Code:
on *:TEXT:*:?:{
  .timer 1 1 echo -a $!msgtags
}
alias example {
  parseline -iqtu0 @example=text :example!example@example.com PRIVMSG $me :example
}



With more tinkering of msgtags, I feel there's a few issues:

Code:
$msgtags(name)
Returns $true if the tag exists, $false otherwise; this is inconsistent of other identifers.
It should return the value for the specified tag or $null if the tag does not exist.



Code:
$msgtags(name).key
Returns the value of the tag.
It should return the name of the tag if the tag exists, $null if it does not.



Code:
$msgtags(name).tag

Returns the tag name
It should return the full tag definition if it exists, $null if it does not

Last edited by FroggieDaFrog; 11/11/15 07:14 PM.

I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,427
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,427
Thanks for your bug report. This issue has been fixed for the next version. Regarding your suggestions, I intentionally designed this identifier and its properties to return the values they do. For example, as a tag can exist without a value, the only way to check for its existence is $true/$false. And so on. There are no plans to change this behaviour I'm afraid.


Link Copied to Clipboard