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.
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sat Oct 11, 2003 6:54 am
Hi,
does anyone has a script that when a user sets mode +i the bot bans this user?
thx for help
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Sat Oct 11, 2003 8:41 am
Code: Select all
set btime 1
bind mode - "* +i" banoni
proc banoni {nick host hand chan mo arg} {
if {![matchattr $hand n|n]} {
newchanban $chan [maskhost $host] $::botnick "no +i please" $::btime
}
}
note: untested
Elen sila lúmenn' omentielvo
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sat Oct 11, 2003 9:10 am
it works thx
but it also must remove +i
BarkerJr
Op
Posts: 104 Joined: Sun Mar 30, 2003 1:25 am
Contact:
Post
by BarkerJr » Sat Oct 11, 2003 9:31 am
add:
pushmode $chan -i
after the newchanban line.
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sat Oct 11, 2003 10:16 am
it works
but the next question, when i want to prevent to set +k
the bot doenst set -k becaue of the key "test" e.g.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Oct 11, 2003 4:55 pm
this will remove the +k with any key.
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sun Oct 12, 2003 5:34 am
no because he didnt set the key behind off like "-k 12345"
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sun Oct 12, 2003 6:08 am
you can protect modes using .chanset.
in partlyline: .chanset #channel chanmode +nt-ilk for example.
this will let the bot protect these modes, which means if someone removes the +n or +t or bot, it will set them back. same thing for i, l, and k, if someone sets +i or +k or +l ... the bot will remove them.
MINImi
Voice
Posts: 30 Joined: Sat Oct 11, 2003 6:52 am
Post
by MINImi » Sun Oct 12, 2003 8:40 am
thx it works