mIRC Homepage
Posted By: devhdc Works one day, but the other it doesn't - 09/10/03 10:39 PM
on *:TEXT:$(* $+ !regreq $+ *):*:
{
/inc %req
/dns $nick
/write regreq.txt -----REQ_# $+ %req $+ -----
/write regreq.txt Nick: $nick
/write regreq.txt Username: $2
/notice $nick Your request is saved, you'll be informed when granted.
}

on *:DNS:
{
/write regreq.txt IP: $iaddress
/write regreq.txt ---END_REQ_# $+ %req $+ ---
}

on *:TEXT:!queue:*:
{
/notice $nick We currently have %req requests.
}

on admin:TEXT:!nolla:*:
{
/set %req 0
/write -c regreq.txt
}

Now this works the day we first scripted it, then 1 day later it ceases to work, and there has been no modification of the script at all between that time.. the client is mIRC 6.1. no modifications of anything... so.. what's wrong here ?
Posted By: Knappen Re: Works one day, but the other it doesn't - 09/10/03 11:04 PM
on *:TEXT:$(* $+ !regreq $+ *):*:
{
= WRONG!

on *:TEXT:*!regreq*:*:{
= right!

Maybe you should read the help file?!

That;s not their problem. Using either is acceptable, and is only preference which you should use. If I had to guess, I would say the person using the command (whom presumibly was set to admin) has dialup internet, their mask changed, and they no longer have the admin level access. Just my guess tho.
Posted By: cold Re: Works one day, but the other it doesn't - 10/10/03 02:06 AM
Quote:
Maybe you should read the help file?!
Posted By: devhdc Re: Works one day, but the other it doesn't - 10/10/03 05:40 AM
Well we worked that out a cpl hrs before anyone answered my post yday, but having { in a new line on aliases worked, so we supposed it would in remote aswell, and it did... the first time we scripted it atleast, anyway, Khaled really should allow { in newline's because then you can get the code looking smoother.
Posted By: Othello Re: Works one day, but the other it doesn't - 10/10/03 09:22 PM
See if this helps any


on *:TEXT:*:#: {
if (!regreq isin $1) {
/inc %req
/dns $nick
/write regreq.txt -----REQ_# $+ %req $+ -----
/write regreq.txt Nick: $nick
/write regreq.txt Username: $2
/notice $nick Your request is saved, you'll be informed when granted.
}
if (!queue isin $1) {
/notice $nick We currently have %req requests.
}
}

on *:DNS: {
/write regreq.txt IP: $iaddress
/write regreq.txt ---END_REQ_# $+ %req $+ ---
}

on admin:TEXT:!nolla:*: {
/set %req 0
/write -c regreq.txt
}
I would think the problem is you have $(..). also a dns takes awhile to reply so when two ppl type !regreq your variable changes and a line of text is written wrong.
also isin is not the correct operator. try ==, or /help operators, also validate they have a username, otherwise there application shouldn't be written.

on *:TEXT:$(* $+ !regreq $+ *):*:
© mIRC Discussion Forums