mIRC Home    About    Download    Register    News    Help

Print Thread
#20656 24/04/03 02:04 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
gott a little problem, i made some code for sending the current logfile when an op sez a specific text in the channel, if someone else tries it, and they arent an op, then a warning is supposed to go to the channel, but no warning is being sent, here is my code:

Code:
 on *:TEXT:$me send current log:#speaker's_corner:{
  if ($nick ISOP $chan) {
    msg $nick 8,1Preparing to send the current log, please stand by...  
    copy c:\stat-triv\logs\phazenet\#speaker's_corner. $+ $asctime(yyyymm) $+ 01.log c:\stat-triv\logs\phazenet\#speaker's_corner. $+ $asctime(yyyymm) $+ 01.for_ $+ $nick $+ .log
    .timersendlog $+ $nick 1 5 dcc send $nick c:\stat-triv\logs\phazenet\#speaker's_corner. $+ $asctime(yyyymm) $+ 01.for_ $+ $nick $+ .log
  }
  else msg $chan 8,1Warning: $nick Does NOT have the correct privilages to reguest a log send of the current log
} 


can someone see where i am screwing up?


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
#20657 24/04/03 02:30 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Code:
on *:TEXT:[color:red]$([/color]$me send current log[color:red])[/color]:#speaker's_corner:{ 
  ...
}

#20658 24/04/03 02:37 AM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
thanks, it fixed it


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
#20659 24/04/03 05:27 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You're welcome. I forgot to mention it's documented in the help file. type /help $(...) for details.


Link Copied to Clipboard