mIRC Home    About    Download    Register    News    Help

Print Thread
#178720 13/06/07 09:47 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
hello.
i want to make a script to helps in my work.
i want the oper login command to login ONLY in status (NOT in channel or private room)
When i hit "o" in my status i want to login me to be an IRCoperator.
When i hit "login" in my status i want to login to my username. etc.

Can you help me please ?
Thank you !


/server IRC.RomaniaIRC.ORG
Joined: Jul 2006
Posts: 4,187
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,187
on *:input:status window:if ($istok(o.login,$1-,32)) $iif($1- == o,command oper,command login)

You can use $server or $network, if you have more than one server open, to know what server the status window is associated to.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
i don't understant. Were i write my oper username and password ?


/server IRC.RomaniaIRC.ORG
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I think Wims meant..

on *:input:status window:if ($istok(o.login,$1-,46)) $iif($1- == o,oper,login)

Example:

on *:input:status window:if ($istok(o.login,$1-,46)) $iif($1- == o,oper Andy pass123,nickserv identify passabc)

Put that in your remote scripts, change the parts in blue.

Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
that code is not working.
and i had try to made this code:

Code:
alias get.user return { $1 }
alias get.pass return { $1 }
on *:INPUT:status window:{
  if ($1 == o) { /oper Andy pass123 }

and is working. smile
Anyway, thanks a lot for help.


/server IRC.RomaniaIRC.ORG
Joined: Jul 2006
Posts: 4,187
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,187
You're right, i put 32 because i use it really often


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2006
Posts: 4,187
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,187
I've tried my code and it's working perfectly...



#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard