mIRC Home    About    Download    Register    News    Help

Print Thread
#135550 13/11/05 08:04 AM
Joined: Sep 2004
Posts: 12
F
Fey Offline OP
Pikka bird
OP Offline
Pikka bird
F
Joined: Sep 2004
Posts: 12
Type
Code:
//echo -a $remove(#channel,#)  

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Maybe you should first try
//echo -a Channel: # ; hash sign: $chr(35)
in a few channel windows AND in status window or query window. Then you can wonder what happens with $remove.

# is a shortcut for $chan if it's used alone, so # will give channel name (or nothing if not in a channel window) while #blah will just be #blah, not #channelnameblah. I'm not a fan of this shortcut, but it's there so we'll need to live with it.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Kelder is right. Though one thing we can do instead of using $chr(35) is to not evaluate it.

Without $chr(35)

//echo -a $remove($chan,$(#,0))
//echo -a $remove(#channel,$(#,0))

With $chr(35)

//echo -a $remove($chan,$chr(35))
//echo -a $remove(#channel,$chr(35))

-Andy


Link Copied to Clipboard