mIRC Home    About    Download    Register    News    Help

Print Thread
#124670 09/07/05 07:49 PM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
In my remote.ini I have now some hosts.

adm:*!*@host.com
adm:*!*@host.com
adm:*!*@host.com
adm:*!*@host.com

When they join, they get auto-op in my channel.
But i want to add them automatically when i type !op NICK

How to do that?

#124671 10/07/05 01:24 AM
Joined: Jun 2005
Posts: 44
B
BNX Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Jun 2005
Posts: 44
I dont understand your problem... you want to add them as op permanently, but when they join it automatically ops them... I dont get it.



on *:text:!op *:#: {
if ($nick isop #) {
mode +o $2
}
else {
msg # No!
}

This will op someone on your command, until they leave.

If you want to add them permanently to your list of hosts

on *:text:!op *:#: {
if ($nick isop #) {
set %temp $address($2)
auser <level> *!*@*. $+ %temp
unset %temp
}
else {
msg # no!
}
}

I havn't tried this exact script, so if anyone finds it crappy, please correct me.

Last edited by BNX; 10/07/05 01:39 AM.
#124672 10/07/05 01:35 AM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
Code:
on rank:join:#channel: {
  mode # +o $nick
  notice $nick Welcome, blablabla
}


Thats what i allready have.

But if I do !op someone, then i want he's hostname automatically in my remote.ini (Users in ALT+R), so it gives him +ao for the rest of the time, so he dont have to be authed to the ChanServ.

This is my !op script now, I want to remove the +ao from L, if I know how to add the hostname and good rank.

Code:
on @*:TEXT:!op &amp;:#: {

  if ($2 !ison #) notice $nick User not found.

  elseif ($nick isop #) { 
    mode # +o $2 
    msg L chanlev # $2 +ao
    notice $nick Done. 
  }

  else {

    notice $nick You are not allowed to use this command.

  }

}

Last edited by Vinniej; 10/07/05 01:36 AM.
#124673 10/07/05 04:31 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try this:
Code:
on @*:text:!op*:#:{
 if ($2  !ison $chan) { .msg $nick Can't find $2 }
else {
.guser -a rank $2
.mode # +o $2
}
}
 

#124674 10/07/05 05:04 AM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
And how to delete the record? smile

If i have that, i'm happy for now :P

#124675 10/07/05 06:25 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
/ruser <level> $right($address($nick,0),-2)

#124676 10/07/05 05:10 PM
Joined: Apr 2005
Posts: 64
V
Vinniej Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Apr 2005
Posts: 64
it says

"* No such user in user list"

Code:
on @*:TEXT:!deop &amp;:#: {

  if ($2 !ison #) notice $nick User not found.

  elseif ($nick isop #) { 
    mode # -o $2 
    msg L chanlev # $2 -ao
    ruser dew $right($address($nick,0),-2) 
    notice $nick Done. 
  }

  else {

    notice $nick You are not allowed to use this command.

  }

}  

#124677 12/07/05 11:41 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not sure if this is why, but in my code it's adding the level 'rank' to the user, and in the removal code, you're looking for the level 'dew'... make sure that the levels are the same in both.

I might have the format for the $address wrong.. add someone to the userlist using the code, then look to see what the format of the information in the User List is.

One of the items should be their address in, I think, [email]User@host.[/email] If this format isn't correct, make a note of the format and look in /help $mask for a format that's the same or very close.

If you're not sure, or still having problems, post the format of the address and I'll modify the code to accomodate the format that is actually showing.


Link Copied to Clipboard