egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Global ban

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
fls
Voice


Joined: 17 Oct 2007
Posts: 35

PostPosted: Sat Apr 12, 2008 9:06 am    Post subject: Global ban Reply with quote

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 12, 2008 10:30 am    Post subject: Reply with quote

This is gban_pub:
Code:
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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber