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.
Old posts that have not been replied to for several years.
F
FireStorms
Post
by FireStorms » Tue Apr 27, 2004 2:37 pm
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
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Apr 27, 2004 3:08 pm
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 » Tue Apr 27, 2004 3:23 pm
isn't working
[10:21:38] <SONAR> [22:21] Tcl error [nick:check]: illegal channel: *
and thats all...
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Apr 27, 2004 3:35 pm
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 » Tue Apr 27, 2004 4:10 pm
ok it's working when ppl change their nicks ...
but if some1 rejoins bot don't give op
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
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Apr 27, 2004 4:15 pm
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 » Tue Apr 27, 2004 4:21 pm
hmmm
but can you PLZ make a script ?
strikelight
Owner
Posts: 708 Joined: Mon Oct 07, 2002 10:39 am
Contact:
Post
by strikelight » Tue Apr 27, 2004 4:58 pm
There's no point in making a script for what eggdrop already does..