mIRC Home    About    Download    Register    News    Help

Print Thread
#163064 26/10/06 09:27 AM
Joined: May 2006
Posts: 122
J
jizzy Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2006
Posts: 122
When you use /debug -i aliasname, $1 returns the whole debug line rather than just the first word.


If only women came with popup menus and online help.
#163065 26/10/06 10:39 AM
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Yes, -i means that an identifier is called, i.e. your alias is called as an identifier (so that it can return a value), with the whole line as first parameter - that's how identifiers work. If you want to split it over multiple $1, $2 etc parameters, then you can always use /tokenize yourself, however you'll lose leading/trailing/multiple consecutive spaces when doing that.


Saturn, QuakeNet staff
#163066 27/10/06 09:59 AM
Joined: May 2006
Posts: 122
J
jizzy Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Ok, I guess its not a bug then. Just seemed like weird behaviour.


If only women came with popup menus and online help.
#163067 28/10/06 07:06 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/filter follows the same behaviour with -k


Link Copied to Clipboard