|
|
Joined: Apr 2005
Posts: 64
Babel fish
|
OP
Babel fish
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?
|
|
|
|
Joined: Jun 2005
Posts: 44
Ameglian cow
|
Ameglian cow
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.
|
|
|
|
Joined: Apr 2005
Posts: 64
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 64 |
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. on @*:TEXT:!op &:#: {
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.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Try this: on @*:text:!op*:#:{
if ($2 !ison $chan) { .msg $nick Can't find $2 }
else {
.guser -a rank $2
.mode # +o $2
}
}
|
|
|
|
Joined: Apr 2005
Posts: 64
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 64 |
And how to delete the record? If i have that, i'm happy for now :P
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
/ruser <level> $right($address($nick,0),-2)
|
|
|
|
Joined: Apr 2005
Posts: 64
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 64 |
it says "* No such user in user list" on @*:TEXT:!deop &:#: {
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.
}
}
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
|
|