mIRC Home    About    Download    Register    News    Help

Print Thread
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 ?

Joined: Jan 2003
Posts: 148
K
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?!


Joined: Jan 2003
Posts: 3,012
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
Joined: Feb 2003
Posts: 810
C
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
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.

Joined: Dec 2002
Posts: 417
O
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....
Joined: Oct 2003
Posts: 10
T
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 $+ *):*:


Link Copied to Clipboard