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.

Make Eggdrop Change a users flag?

General support and discussion of Eggdrop bots.
Post Reply
H
Hawake
Voice
Posts: 3
Joined: Fri Apr 30, 2010 10:45 am

Make Eggdrop Change a users flag?

Post by Hawake »

I'm new to egg bot and i got the egg bot since we currently have problems to keep our channel opp ed by humans and i have read that you can make the egg bot set certain flags on users if you ask the bot so i wonder how can you set up so the bot does that?

something like: /MSG bot need-op "password" and then it would give Op to the user who wrote it

Tell me if you need to know more about my problem or so and i will try to explain how i mean that i want the bot to do.

// Hawake
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

See the .adduser and/or .+user dcc partyline commands to add new users to your bot.
Then use the .chattr command to give them proper permissions (see .help whois for a basic list of different flags - permissions).
Remind the user to set a password using "/MSG yourbot PASS newpass"
Tell the user that (s)he can get op using "/MSG yourbot OP password"
NML_375
H
Hawake
Voice
Posts: 3
Joined: Fri Apr 30, 2010 10:45 am

Post by Hawake »

nml375 wrote:See the .adduser and/or .+user dcc partyline commands to add new users to your bot.
Then use the .chattr command to give them proper permissions (see .help whois for a basic list of different flags - permissions).
Remind the user to set a password using "/MSG yourbot PASS newpass"
Tell the user that (s)he can get op using "/MSG yourbot OP password"
Okay, but it seems like i cannot get in partyline or dcc with the bot, it gives me a telnet error, and a mate told me that if you disabled the telnet module it should work so how do i disable/remove the telnet module?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

There is no telnet module, and never has been one.
Have you created your owner account, and set a password yet?
NML_375
H
Hawake
Voice
Posts: 3
Joined: Fri Apr 30, 2010 10:45 am

Post by Hawake »

I managed to get in dcc with my bot and added the users i wanted, now the problem is that i gave my test user a few flags, he gets op when he joins the channel if he writes something in the channel wich is good!, but i really dont like when its like that, since then anybody could take his nickname and write and get op and then do a channel takeover, so how do i make it like i mentioned earlier? that you need to msg the bot that you want op and then a password set in the config file or something?


it could work to have it as it is since our channel isn't that big as it is, but i really dont want to risk that happening.

Thanks for the help with the other commands btw :)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Which flags did you grant this user?
To have the user manually request op, they should have the +o flag, but not the +a flag. You could also grant them the +f flag, if you want them excluded from flooding and similar.

Further, to restrict whom may be able to impersonate this user, take care when setting up "hostmasks". A hostmask is a pattern that is matched against the "nick!user@host" as shown on irc, the pattern can contain * to match 0 or more characters, and ? to match one single character, as well as explicit strings:
*!user@shell1.example.com as an example would match anyone connecting from shell1.example.com while logged on as user - regardless of what nickname they use on irc.
You can use the .whois command to see what hostmasks have been added to the user record. You can then user the .+host and/or .-host command to add/remove hostmasks from the user record as needed.
NML_375
Post Reply