mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Hi,

I have a remote file to auto ignore queries from people on my "badlist", and I wrote these two aliases to add and remove people. The problem is that the one to remove a name isn't working right. It's just putting a blank space at the beginning of the file and the next line is still the nick I tried to remove. (I've only had one nick in there just to test it so far) Any ideas why this isn't right? I just looked at the help for write -ds(line number) today, so I could be using it incorrectly. Here are the aliases.

Code:
/badlist {
  var %addbad $$?="Name to add:"
  write C:\mirc\badlist.txt %addbad
}
/delbad {
  var %delbad $$?="Name to delete:"
  write -ds%delbad C:\mirc\badlist.txt
}

Thanks for any help.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
write -ds $+ %delbad C:\mirc\badlist.txt

You need a space for the variable to evaluate.


Invision Support
#Invision on irc.irchighway.net
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Thanks, that was my next guess. laugh

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Btw, you should use = when using /var. There are some cases where not using the = will cause an error.

var %varname = value

rather than

var %varname value


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard