This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

-ban to file

Old posts that have not been replied to for several years.
Locked
m
mm
Halfop
Posts: 78
Joined: Thu Jul 01, 2004 10:24 pm

-ban to file

Post by mm »

Hi, is it possible if someone use .-ban command in the partyline so it can log who used the commnd, and whatever ban was removed to a file with the time stamps?

advance thanks
MM
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

It should be possible. This isn`t a real request? I tell you in short the steps:

Code: Select all

# see the bind and think about what you want to change, unbind / re bind
.tcl foreach bind [binds dcc] { putlog $bind }

# to see the variables with the proc need to be called type:
# .tcl *dcc:kickban
# Tcl error: wrong # args: should be "*dcc:kickban hand idx param"

# - your script -

# unbind
catch { unbind .........

# re bind
bind dcc - commandname new:procname

# proc for what you want
new:procname { hand idx param } {
 # check acess, whateever you want
 # logging stuff
 # and at least:
 *dcc:kickban $hand idx param
}
Btw, i have seen in the script archive something about this but never looked at them.
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

or you can use bind filt
Locked