mIRC Home    About    Download    Register    News    Help

Print Thread
#155213 04/08/06 02:03 PM
Joined: Oct 2004
Posts: 24
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2004
Posts: 24
anyone can guide me through this ??
the 2 last elseif should be on 2nd stage, not on 1st

on ^*:notice:*:* {
if ($nick == X && $network == UnderNet) {
;haltdef
if ($1 == The || $1- == No Match!) {
.disable #access
}
elseif $regex($1,/^USER\S/) {
if ($4 >= 100) {
set -u20 %access op
}
}
elseif (%access == op && $regex($1-,/^CHANNEL: .*? AUTOMODE: (?!OP)/)) { msg x op $2 $me }
elseif ($1-4 == End of access list) { .disable #access }
}
}
picture here of what it actually is:

http://rlavoie.gotdns.org:81/mirc/indent_wrong.jpg

it should be like this:

http://rlavoie.gotdns.org:81/mirc/indent.jpg

tried it on version 6.16 6.17 and 6.2 and all returns that error

I've not tested if it had repercussion on the execution of codes if that error happens tho.

anyone can enlighten me on this ?


the way it's supposed to be !

UnderNet #scripting - #mircscripting
#155214 04/08/06 03:44 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
on ^*:notice:*:*: {

Despite the above problem, it indented ok for me.

#155215 04/08/06 08:32 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Quote:
on ^*:notice:*:*: {

Despite the above problem, it indented ok for me.


I concur. Perhaps an issue further up?


-KingTomato
#155216 05/08/06 06:37 AM
Joined: Oct 2004
Posts: 24
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2004
Posts: 24
ok that's strange, that's the code I had that was not working, just copy pasted it back and it indent fine, made no change, it was even in a file alone and it was not indenting correctly ... weird issue confused ... anyway now it works, thx for trying it tho


the way it's supposed to be !

UnderNet #scripting - #mircscripting

Link Copied to Clipboard