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 

+ban command

 
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
AW
Guest





PostPosted: Thu May 09, 2002 3:12 am    Post subject: Reply with quote

Hi, i am trying to write a scripts add ($handle $date) to the bans reason, so baned person can see who set a ban on him/her.
i am able to set this at the end of reason like Z was kicked by eggdrop(banned: reason May09 AW), but i was trying to set in the begining like
z was kicked by eggdrop(May09 AW: reason), i have tried my best, but couldn't figure out, i will appreciate for your kind help
regards
AW

bind dcc o|o +ban ban:+ban

proc ban:+ban {handle idx arg} {
if {$arg == ""} {
*dcc:+ban $handle $idx $arg
return 0
}
set date [clock format [clock seconds] - format "%b %d"]

*dcc:+ban $handle $idx "$arg ,$date $handle"
}
Back to top
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