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.

Hiding a channel settings done via dcc .chanset [SOLVED]

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Hiding a channel settings done via dcc .chanset [SOLVED]

Post by TCL_no_TK »

I need to find a way to hide a channel setting that's contains *sensitive* information. Its a big part of the script so not using it isn't really an option. I've thought of using the encrypt and decrypt fuctions of eggdrop to hide the actuall string. but i cant seem to think of a way to block it from dcc and everything. At the moment it dose something like this
<Me> .chanset #mychannel test mysecret
<bot> Successfully set modes { test { something } } on #mychannel
<bot> #Me# chanset #mychannel test { something }
I dont want to have to unbind the default chanset dcc command and replace it. I've thought about using the filt bind but am un-sure about it. :roll:
Any idea's about using something else would be great :)
its basicly array i.e. "#mychannel" "something" which could be used i know. but i'm aiming for keeping it done via dcc so it can be set or changed if needed.
Last edited by TCL_no_TK on Fri Dec 28, 2007 5:17 am, edited 1 time in total.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Your options are pretty much using a weak encryption, or replace .chanset, possibly along with the tcl channel command - either scriptwize or in source.

filt bindings only alters what eggdrop thinks the user wrote, it will not modify the output from eggdrop to the user.
NML_375
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Thanks nml371 :D I thought alot about what said about changing it from source/with a script n that. After looking at it a differant way, i thought of way to add new commands for dcc i.e +test <#channel> [something] and -test <#test> this way if someone was to do .chanset <#channel> [something] it wouldn't be encrypted and would fail to work. Dunno really if this is secure or if am just addressing an other issue. But since the encrypt and decrypt is used in the script and the [something] is blocked from when used with the [+/-]test might be more secure.
Post Reply