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.

restricting access to certain DCC commands

Old posts that have not been replied to for several years.
Locked
L
LtPhil
Voice
Posts: 26
Joined: Mon Jul 28, 2003 10:25 am

restricting access to certain DCC commands

Post by LtPhil »

hello... i can't figure out what the binds are for the .whom, .who, and .whois.

what i'm trying to do is either
a) restrict access to these commands, so only global masters/owners can use them, or
b) rewrite them so they do not show what console channel a user is on

what would be best, actually, is if i could rebind .chat so you have to use a key to enter certain channels (i wouldn't mind if the keys were hard-coded), i.e. you'd need to type .chat 200 blah to join channel 200 if the key for that channel was "blah", and if you entered an incorrect (or no key) it would tell the user "sorry, you did not enter the correct key for this channel" or something to that effect.

any thoughts/ideas/etc?

i'd rather not recompile my bot, but if that's what it takes... *shrug*

if i do need to change something in source and recompile, just tell me exactly what needs changing where, so i don't FUBAR something and get stuck with no bot :P
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

.binds dcc all
L
LtPhil
Voice
Posts: 26
Joined: Mon Jul 28, 2003 10:25 am

Post by LtPhil »

hmmm... that worked :)

when i tried .binds dcc *who*, and other variants on that, it wouldn't show them.

thanks :)

now that i've got those commands restricted, anyone got any tips on keying channels? :-?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

LtPhil wrote:anyone got any tips on keying channels? :-?
You'd have to rewrite the .chat command to require a password and use a 'chon' bind to catch newcomers. Possibly prompting them (using 'control') for a password if [getchan their_idx] is a password protected chan. (if they fail you could dump them back to some default unprotected chan (using 'setchan') or 'boot' them.)

Keep the channels/passwords in an array (element names being the channel number and the value an encrypted version of the password ('encpass')) and use 'info exists that_array(channel)' to determine if a channel is protected by a password.

Or you could forget all that and use a 'chjn' bind to prompt for passwords on join.
Locked