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.

Managing my users...

Old posts that have not been replied to for several years.
Locked
d
deurk

Managing my users...

Post by deurk »

I've got a bot with a few scripts which allow or not the execution based on some differences between users.
I tried to use like a +h flag to allow users but apparently, when I check the handle like:

bind pub - !test testproc
proc testproc {nick host hand chan arg} {
putserv "PRIVMSG $chan: $hand"
}

I always get a '*' as a answer...
so a mattchattr |h against an '*' is never true...

Is there any obvious mistake?
Or how could I make the bot identify users in another way (and pretty secured)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is because the bot does not recognise the user.

Have you added a user-record for the user with .+user or .adduser?

handles are a user identity inside a bot, and will remain the same, even when a nickname, hostmask or ident changes.

The problem with this, is that the bot needs some way to distinguish between users, when these changes take place. The only change that can take place while connected to a IRC server, is the nickname, no there is no way to automaticaly track a user.

Thus, eggdrop uses hostmasks. This is wildcard and character combination, that matches a user based on a users userhost in the format of nick!ident@host.name.

Have you added a hostmask tot he user with .+host?

You can also use ".channel #chnnalename" to see what users match what handles.
d
deurk

Post by deurk »

So, is there any pretty secure way of having a bunch of users have some rights over another category, on a specific channel (outside the bot)?

And if so, how?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

I do not understand.

EG

Your bot is in 2 channels, #ch1 and #ch2

You want to assign flags to users on #ch3 which doesn't exist?

If so, then no, not directly.

However, you can use ".+chan", then set the channel +inactive.
d
deurk

Post by deurk »

OK, I'll try like this:

I've got my own IRC server running my own eggdrop. Had defined some neat functions that are binded on PUB commands like !topc for a topic change...

Thing is, I would like to find ANY WAY to allow some users I choose to be able to use that !topc command but not everybody.

I've tried to register those on the bot and use a +f flag after that but if I take any irc client and use the ident I took from someone else's whois, I have the same rights has the registered REAL PERSON does...

Is there any way to avoid that??

Thanks ;)
P
Photon
Op
Posts: 170
Joined: Wed Aug 28, 2002 8:00 am
Location: Liverpool, England

Post by Photon »

No. and yes.

If I understand you correctly you are saying that your bot is incorrectly identifying people? Thus abuse could be done by anyone...

I suggest you

a: tighten up your hostmasks - see this site's help and the eggdrop docs for more help.

and b: implement some kind of password authing system - such as that used by lols toolz - see the tcl archive on this site. For the kind of thing I think yoyu are trying to do, lols is a VERY good reference, as its pretty secure (or so I'm led to believe)
Locked