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.
-
Sphinx
- Halfop
- Posts: 90
- Joined: Tue Mar 04, 2003 10:00 am
Post
by Sphinx »
does anybody know how to make a simple one or maybe already excists
a script which for example works like !kick then kicks people with a certain hostmask
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
This can be used in conjunction with a AUTH script.
At this time, anybody matching a global or channel master, can use it.
Code: Select all
bind pub m|m "!kick" my:pub:kick
proc my:pub:kick {nick uh hand chan arg} {
set mask [lindex [split $arg] 0]
if {![string length [set rsn [join [lrange [split $arg] 1 end]]]]} {
set rsn "Mask kick"
}
set list [list]
foreach user [chanlist $chan] {
if {[string equals -nocase $user $nick]} { continue }
if {[string match -nocase $mask [getchanhost $user $chan]]} { lappend list $user }
}
putkick $chan [join $list {,}] $rsn
}
-
Sphinx
- Halfop
- Posts: 90
- Joined: Tue Mar 04, 2003 10:00 am
Post
by Sphinx »
ok thanks
so this would kick everybody matching the hostmask when !kick has being enter in the channel?
-
ppslim
- Revered One
- Posts: 3914
- Joined: Sun Sep 23, 2001 8:00 pm
- Location: Liverpool, England
Post
by ppslim »
Examples in the channel
!kick *!*dcc*@*aol.com AOL XDCC lamers
!kick *aol* No AOL at all
!kick *!*@*.com
You can specify a reason after the mask, but it's not needed.
-
Sphinx
- Halfop
- Posts: 90
- Joined: Tue Mar 04, 2003 10:00 am
Post
by Sphinx »
ah ok got it now
thanks alot