This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

op/deop when nick changed

Old posts that have not been replied to for several years.
Locked
F
FireStorms

op/deop when nick changed

Post by FireStorms »

I just wanted to know is there some script like when some1 add specified text to his nick bot gives op to user and when removes - then deop

FireStorm is now known as LAT|FireStorm
SONAR sets mode: +o LAT|FireStorm
LAT|FireStorm is now known as FireStorm
SONAR sets mode: -o FireStorm

:roll:
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Code: Select all

set nicktext "LAT|"
bind nick - * nick:check
proc nick:check {nick uhost chan hand newnick} {
  global nicktext
  if {[botisop $chan] && ![isop $newnick $chan] && [string match -nocase *$nicktext* $newnick]} {
    pushmode $chan +o $newnick
  } elseif {[botisop $chan] && [isop $newnick $chan] && ![string match -nocase *$nicktext*] && ![matchattr $hand o|o $chan]} {
    pushmode $chan -o $newnick
  }
}
Untested...
F
FireStorms

Post by FireStorms »

isn't working :cry:

[10:21:38] <SONAR> [22:21] Tcl error [nick:check]: illegal channel: *
and thats all...
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

woops... mixed up the header arguments... my bad..

Change the order to:

Code: Select all

proc nick:check {nick uhost hand chan newnick} {
F
FireStorms

Post by FireStorms »

ok it's working when ppl change their nicks ...
but if some1 rejoins bot don't give op :cry:

limonchik is now known as Lat-Fan-limonchik
SONAR sets mode: +o Lat-Fan-limonchik
Lat-Fan-limonchik (~solonly@linuxboy.lainnet.lv) has left #sonar.cs
Lat-Fan-limonchik (~solonly@linuxboy.lainnet.lv) has joined #sonar.cs

:roll:
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

You only said nick changes...

As for on joins.. use eggdrop's auto-op feature...

see .help +user , .help adduser , .help chattr , .help whois, and .help +host
in your bots partyline..

(ie. use a hostmask of LAT|*!*@*)
F
FireStorms

Post by FireStorms »

hmmm
but can you PLZ make a script ? :oops:
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

There's no point in making a script for what eggdrop already does..
Locked