mIRC Home    About    Download    Register    News    Help

Print Thread
#161749 10/10/06 04:06 PM
F
Frenatic
Frenatic
F
is there or can I create a variable containing a users auth?

I want to use it in a remote script that can only be acsessed if you are Authed with a specific auth.

Code:

on *:text:*:#: {

  if (($strip($$1-) == !reboot ) && [color:red]( auth == XXXX )[/color]



the reason I dont use a password or similar instead is that I dont think its safe enough, some friends found out about the password during a lan and started to harass my bot :tongue:

#161750 10/10/06 04:30 PM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
why dont you use user levels /help userlevels so only certain nicks or certain hosts can use that event
also

/help auser
/help guser

its all in there and very simple and your code may end up looking like this.

Code:
 on 1000:text:*:#: {
if (($strip($$1-) == !reboot ) 


that means only users with the level 1000 can use that on text event. and to add users just type /guser 1000 <nick> 3
etc

#161751 12/10/06 03:19 PM
F
Frenatic
Frenatic
F
I cant use a nick as one of the triggers, then it's to easy to screw things up for me frown

#161752 13/10/06 09:04 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
You wouldn't be using a nick as a trigger with what he suggested. You would have either the legitimate users' nicks *OR* host information stored in your user list. The event would only trigger if someone with the correct user level tried to trigger it.

That really would be the best method to use. If you really don't want to do this, then you can use a password system that also checks the users' host information.


Link Copied to Clipboard