mIRC Home    About    Download    Register    News    Help

Print Thread
#21926 02/05/03 10:57 AM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
is there a way to do an if event that say
it would look in a text file

if ($2 isin ops.txt) { op $3 }

etc

is there a way to do that?

#21927 02/05/03 11:01 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help $read


Code:
//if ( khaled isgod ) echo yes | else echo no
#21928 02/05/03 11:01 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
if ($2 isin $read(ops.txt)) { blah } should work.


--------
mIRC - fun for all the family (except grandma and grandpa)
#21929 02/05/03 11:02 AM
Joined: Dec 2002
Posts: 339
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
Maybe $read might help you? smile

mIRC has a build-in Auto op system... /help Auto-Op List

#21930 02/05/03 02:35 PM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
You could set each op in the channel to a level in your users list. But, I went with using the auto ops built into mirc because not only will it work with ops in different channels but across different networks




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#21931 03/05/03 12:48 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
if ($read(ops.txt,w,* $+ $2 $+ *) != $null) { op $3 }


Link Copied to Clipboard