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.

Need Script

Old posts that have not been replied to for several years.
Locked
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Need Script

Post by MINImi »

Hi,

does anyone has a script that when a user sets mode +i the bot bans this user?

thx for help
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

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
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Post by MINImi »

it works thx

but it also must remove +i :)
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

add:
pushmode $chan -i
after the newchanban line.
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Post by MINImi »

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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

pushmode $chan -k ?
this will remove the +k with any key.
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Post by MINImi »

no because he didnt set the key behind off like "-k 12345"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
M
MINImi
Voice
Posts: 30
Joined: Sat Oct 11, 2003 6:52 am

Post by MINImi »

thx it works
Locked