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.

Global ban

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
f
fls
Voice
Posts: 35
Joined: Wed Oct 17, 2007 10:55 pm

Global ban

Post by fls »

Hi, can someone write a particular command just for this? in the bot banlist

bind pub n|n .Globalban gban_pub
bind pub n|n .Globalunban gban_pub
bind pub n|n .Globalbanlist gban_pub

Usage: !Globalban <nick or hostmask> <time> <reason>"

The ban in *@*.host.tld

Regard
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This is gban_pub:

Code: Select all

bind pub n|n .globalban gban_pub

proc gban_pub {nick uhost hand chan arg} {
 if {[scan $arg "%s %d %\[^\n\]" mask time rsn] != 3} {
  puthelp "privmsg $chan :SYNTAX: .globalban <mask/nick> <time> <reason>"
  return
 }
 if {![string match *@* $mask]} {
  if {![onchan $mask $chan]} {
   puthelp "privmsg $chan :$mask is not here."
   return
  }
  set mask [getchanhost $mask $chan]
 }
 newban $mask $nick $rsn $time
 puthelp "privmsg $chan :added $mask to global ban list"
}
Use it to write the other 2 procedures.
Post Reply