mIRC Home    About    Download    Register    News    Help

Print Thread
On 1 text +o Username #240331 22/01/13 07:33 AM
Joined: Jan 2013
Posts: 3
C
Christion Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2013
Posts: 3
I have a reason ( which I will not disclose) to have a script for automation of my username oping someone.. I was thinking something simple like..

on1:text opme set +o username


I am really.. really rusty... on mirc scripting.. So can someone help me with this script?


Re: On 1 text +o Username [Re: Christion] #240334 22/01/13 04:38 PM
Joined: Dec 2008
Posts: 95
A
asdfasdf Offline
Babel fish
Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
Someone as in anyone or only someone specific?

Code:
on *:text:opme:#:mode # +o $nick


See /help on text and also /help /aop.

Re: On 1 text +o Username [Re: asdfasdf] #240337 23/01/13 02:10 AM
Joined: Jan 2013
Posts: 3
C
Christion Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2013
Posts: 3
It's one particular person... Who refuses to register their nick.. So Aop is not exactly an option.. So I figured I would just script in something so they could just type /opme or something like that and I would op them even if I am not at the pc. I am thinking now that maybe I would prefer it to work if they /notice me... or msg me.. but for right now I have a simple..
Code:
on 1:TEXT:opmael:#:{ mode $chan +o $nick }
which is working.. but I was thinking that for security measurs.. ( so no one could just come in and say the word and get opped.. I might make it so only in a notice to me... or a variable added on 1 if username= maelwys or maelafk then +o elseif null...


did any of that make sense?

Last edited by Christion; 23/01/13 02:11 AM.
Re: On 1 text +o Username [Re: Christion] #240338 23/01/13 03:36 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
From the security point of view, no. Not the check for a username - as everyone can switch to that unregistered name.
Registered nicknames and network services will prevent possible abuse, and even there you have the potential of insecure passwords and the like.
If you want to incorporate it anyway, look up "if then else conditions" and "on notice" in the helpfile.

Sidenote: While it's questionable to entrust op rights to a person that is either unable or too lazy to register its nickname, the automation of that process, opening a huge abuse vector, sounds asinine to me.

Re: On 1 text +o Username [Re: Christion] #240342 23/01/13 05:47 PM
Joined: Dec 2008
Posts: 95
A
asdfasdf Offline
Babel fish
Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
Originally Posted By: Christion
It's one particular person... Who refuses to register their nick.. So Aop is not exactly an option..

mIRC's Auto-Op feature, not ChanServ's AOP access.

Quote:
If a user joins a channel where you have Ops and that user's address is listed in the auto-op list, they will be given Op status.


See /help Control

Last edited by asdfasdf; 23/01/13 05:47 PM.
Re: On 1 text +o Username [Re: asdfasdf] #240345 23/01/13 06:27 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You know a host can be spoofed, and that way a "bad" person get oped instead of your friend, if he dont register, then dont give that person op.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: On 1 text +o Username [Re: sparta] #240352 24/01/13 03:09 AM
Joined: Jan 2013
Posts: 3
C
Christion Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2013
Posts: 3
Thanks for all the help guys.. I really appreciate it.