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 

import channel banlist

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Pitchat
Op


Joined: 18 Feb 2003
Posts: 122
Location: Hebertville Quebec Canada

PostPosted: Tue Oct 04, 2005 1:40 pm    Post subject: import channel banlist Reply with quote

Hi,

often when you put your eggdrop on a new channel there is already some bans in the channel banlist that was set before the eggdrop join .

I wonder if it is possible to import that channel banlist and include it in the bot channel banlist .

any comments welcome

thanks for the help you give me in the past the present and hopefully in the future Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
subtlepoint
Voice


Joined: 11 Dec 2004
Posts: 12

PostPosted: Tue Oct 04, 2005 7:50 pm    Post subject: chan banlist Reply with quote

i could see how this would be useful, might need to post in Scripting Help
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Oct 05, 2005 4:59 am    Post subject: Reply with quote

This belongs in the "Script requests" forum. This should do what you asked for:
Code:
bind join - * add:bans {

proc add:bans {nick uhost hand chan} {
 if {![isbotnick $nick]} {return 0}
 foreach ban [chanbans $chan] {
  if {![isban [lindex $ban 0] $chan]} {
   newchanban $chan [lindex $ban 0] [lindex $ban 1] "Set by [lindex $ban 1]" [expr {[lindex $ban 2]/60}]
  }
 }
}

_________________
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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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