mIRC Home    About    Download    Register    News    Help

Print Thread
Works one day, but the other it doesn't #53169 09/10/03 10:39 PM
Joined: Oct 2003
Posts: 2
D
devhdc Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Oct 2003
Posts: 2
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 ?

Re: Works one day, but the other it doesn't #53170 09/10/03 11:04 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
on *:TEXT:$(* $+ !regreq $+ *):*:
{
= WRONG!

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

Maybe you should read the help file?!


Re: Works one day, but the other it doesn't #53171 09/10/03 11:11 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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.


-KingTomato
Re: Works one day, but the other it doesn't #53172 10/10/03 02:06 AM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Quote:
Maybe you should read the help file?!


* cold edits his posts 24/7
Re: Works one day, but the other it doesn't #53173 10/10/03 05:40 AM
Joined: Oct 2003
Posts: 2
D
devhdc Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Oct 2003
Posts: 2
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.

Re: Works one day, but the other it doesn't #53174 10/10/03 09:22 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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
}




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
Re: Works one day, but the other it doesn't #53175 11/10/03 07:25 AM
Joined: Oct 2003
Posts: 10
T
topscriptz Offline
Pikka bird
Offline
Pikka bird
T
Joined: Oct 2003
Posts: 10
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 $+ *):*: