mIRC Home    About    Download    Register    News    Help

Print Thread
#187862 14/10/07 10:02 AM
Joined: Dec 2006
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2006
Posts: 39
Code:
 
alias writing {
  if (!$read($mircdirnicks.txt,w,$nick)) .write $mircdirnicks.txt $nick
}


its wont work .. Then how to write with out duplicate the nickname ? And i need to clear all nick 30 secs after start writing .. Thanks

Last edited by skovicniq; 14/10/07 10:04 AM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
All that you need to do is use the -s switch.

Code:
alias writing {
  .write -s $nick $mircdir\nicks.txt $nick
}


If you want to clear all nicks after 30 seconds, just /remove the file after a 30 second timer.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 39
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Dec 2006
Posts: 39
one more ..

Code:
 
alias check {
if (!read($mircdir/nicks.txt,w,$nick)) .do something
}


Is it right ?

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
No its not right your missing the $ in between the ! and read


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard