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 

chan ctcp requwsts

 
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
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Fri Aug 12, 2005 11:29 am    Post subject: chan ctcp requwsts Reply with quote

hi, i want a simple tcl when smone use the channel ctcp command the bot ban(chan ban) and kick him from the channel.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Aug 12, 2005 11:44 am    Post subject: Reply with quote

Code:

set r "no chan ctcps"
bind ctcp - * foo
proc foo {n u h d k t} {
   if ![isbotnick $d] {
      newchanban $d [maskhost $n!$u] $::nick $::r
      putkick $d $n $::r
   }
}
Back to top
View user's profile Send private message Visit poster's website
suffering
Voice


Joined: 27 May 2005
Posts: 27

PostPosted: Mon Aug 15, 2005 6:27 pm    Post subject: Reply with quote

thats one kicks also on /me actions... i only want for channel ctcp ... /ctcp #chan ping... and do not kick operators
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Aug 15, 2005 6:55 pm    Post subject: Reply with quote

/me is chan ctcp
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Aug 15, 2005 8:14 pm    Post subject: Reply with quote

Code:
set r "no chan ctcps"
bind ctcp - * foo
proc foo {n u h d k t} {
   if {([string first # $d] != 0) || [string equal -nocase "action" $k]} {return 0}
   if {![isbotnick $d] && ![isop $n $d]} {
      newchanban $d [maskhost $n!$u] $::nick $::r
      putkick $d $n $::r
   }
}

This will not kick for actions and will exempt channel ops.
_________________
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