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 

Kick Message

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


Joined: 12 Jun 2005
Posts: 18

PostPosted: Sun Aug 07, 2005 2:51 am    Post subject: Kick Message Reply with quote

how will i add a kick message to read from kick.txt on eg kick nick if no reason given from the command to read it from kick.txt
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Sun Aug 07, 2005 3:21 am    Post subject: Reply with quote

which command?
Back to top
View user's profile Send private message Visit poster's website
conan_i
Voice


Joined: 12 Jun 2005
Posts: 18

PostPosted: Sun Aug 07, 2005 10:16 am    Post subject: Reply with quote

eg kick nick
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Sun Aug 07, 2005 11:35 am    Post subject: Reply with quote

is that a Tcl command?
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: Sun Aug 07, 2005 12:31 pm    Post subject: Reply with quote

I think what he wants is to use the command "eg kick <nick>" publicly or whatever, and when there's no reason specified the script uses a random reason from a file.
Code:
# use a list instead of a file
set kickreasons {
 "reason1"
 "reason2"
 "reason3"
}
bind pubm - "eg kick *" kick:user

proc kick:user {nick uhost hand chan arg} {
 global kickreasons
 set targ [lindex [split $arg] 2]
 set reason [lindex [split $arg] 3]
 if {![llength $reason]} {
  set reason [lindex $kickreasons [rand [llength $kickreasons]]]
 }
 putserv "KICK $chan $targ :$reason"
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


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

PostPosted: Sun Aug 07, 2005 12:44 pm    Post subject: Reply with quote

Sir_Fz, noone gets even close to your ability to read n00b minds Razz
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: Sun Aug 07, 2005 12:50 pm    Post subject: Reply with quote

demond wrote:
Sir_Fz, noone gets even close to your ability to read n00b minds Razz

Hahaha, I can't disagree Razz
_________________
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