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.

Don't reconise users

Old posts that have not been replied to for several years.
Locked
D
D_Devil
Voice
Posts: 6
Joined: Sat Oct 16, 2004 11:18 am

Don't reconise users

Post by D_Devil »

Can anybody tel mee why the eggdrop does not reconise users i added to the bot

there are 3 users i added with .adduser <nick>
al the users are set as global owners .chattr <nick> +nmo
but the bot does not respont to 2 users with public commands

Does anybody have a idee why ?

Grtz
k
kk-
Voice
Posts: 26
Joined: Sat Aug 09, 2003 10:31 am
Location: uk

Re: Don't reconise users

Post by kk- »

D_Devil wrote:Can anybody tel mee why the eggdrop does not reconise users i added to the bot

there are 3 users i added with .adduser <nick>
al the users are set as global owners .chattr <nick> +nmo
but the bot does not respont to 2 users with public commands

Does anybody have a idee why ?

Grtz
Did the users set a password & has the bot stored a host for them?? check in bot dcc type .match (user nick here)
D
D_Devil
Voice
Posts: 6
Joined: Sat Oct 16, 2004 11:18 am

Post by D_Devil »

Yes al users have set a password and the bot added the hosts of the user
k
kk-
Voice
Posts: 26
Joined: Sat Aug 09, 2003 10:31 am
Location: uk

Post by kk- »

D_Devil wrote:Yes al users have set a password and the bot added the hosts of the user
Your bot does have a public cmd script ??? & if so what one??

give more details of what commands the bot is not responding too ??
D
D_Devil
Voice
Posts: 6
Joined: Sat Oct 16, 2004 11:18 am

Post by D_Devil »

the bot does respont to 2 users and does not respont to 2 other users so the scrips do work. The bot does respont to me with all public commands

it's a script for public commands like op, deop, voice, kick, ban,
and one script (next) it's for ah help channel of a irc server
that only one person at a time is voiced en can be helped.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Here is a good example, on how to add a user:

Code: Select all

.+user awyeah 
.chattr awyeah nm
.+host awyeah!*awyeah@awyeah.org
.chpass awyeah awyeah.ownsyou
.save
Remember HOSTMASK should be in the format: nick!ident@host.domain.com
You can use wildcards such as "*" and "?" in the hostmask.
;Step by step analysis of the code

#Added a user: 'awyeah'
#Gave the user 'awyeah' flags: "nm"
#Added a host for the user 'awyeah': awyeah!*awyeah@awyeah.org
#Set a password for the user 'awyeah': awyeah.ownsyou
#Saved the user and channel files
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
D
Dawnstar44
Voice
Posts: 7
Joined: Tue Feb 15, 2005 10:01 pm

host mask

Post by Dawnstar44 »

[whois: SaloonBot]
     » address : ~boo@dialup-4.229.255.125.Dial1.Detroit1.Level3.net
     » name : SaloonBot
     » origin : Internic Network

this is her whois on the server above
this is what i added to the bot for her host mask could you tell me if i am doing this wrong.. an if this would cause the bot once she logs off the server an back on .. for the bot to say unknown user.. when just before she logged off i did a botname whois nick an the bot knew her an gave me her info.

[23:10] #Dawnstar# whois SaloonBot
HANDLE PASS NOTES FLAGS LAST
SaloonBot yes 0 hp never (nowhere)
#Lesbian-saloon flo never
HOSTS: *!*boo@*.255.125.Dial1.Detroit1.Level3.net
SaloonBot!*Dial1.Detroit1.Level3.net
SaloonBot!*boo@*Dial1.Detroit1.Level3.net
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Re: host mask

Post by YooHoo »

Dawnstar44 wrote:[whois: SaloonBot]
     » address : ~boo@dialup-4.229.255.125.Dial1.Detroit1.Level3.net
     » name : SaloonBot
     » origin : Internic Network

this is her whois on the server above
this is what i added to the bot for her host mask could you tell me if i am doing this wrong.. an if this would cause the bot once she logs off the server an back on .. for the bot to say unknown user.. when just before she logged off i did a botname whois nick an the bot knew her an gave me her info.

[23:10] #Dawnstar# whois SaloonBot
HANDLE PASS NOTES FLAGS LAST
SaloonBot yes 0 hp never (nowhere)
#Lesbian-saloon flo never
HOSTS: *!*boo@*.255.125.Dial1.Detroit1.Level3.net
SaloonBot!*Dial1.Detroit1.Level3.net
SaloonBot!*boo@*Dial1.Detroit1.Level3.net
crappy dialup-based hostmasks will always cause problems....use proper hostmasks....and if this is another bot, you should not use adduser, but rather .+bot <handle> <hostmask>. There is a great document included in your ~doc directory simply entitled 'USERS'.... great chance to learn something new.......:mrgreen:
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

*!*boo@*.255.125.Dial1.Detroit1.Level3.net
Would be better as:
*!boo@*.Detroit1.Level3.net
Wildcards (? or *) could also be used. :)

i.e.
*!boo@*.???.???.Dial?.Detroit1.Level3.net
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
D
D_Devil
Voice
Posts: 6
Joined: Sat Oct 16, 2004 11:18 am

Post by D_Devil »

Thanks for al the possible aswers but whe solved the problem

The people who the bot would not respond to where jusing colors in there tekst so the bot first see the colour code so for him it's not a command he now's. :)

grtz
D
Dawnstar44
Voice
Posts: 7
Joined: Tue Feb 15, 2005 10:01 pm

Thanks

Post by Dawnstar44 »

Thank you everyone, the person made it through the night with 6 disconnets an everytime she came back this time the bot knew her

Thanks ... dialip people are so hard to set a mask for I was at my wits end last night with her

Thank you again
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

If you're using the latest eggdrop you should consider using the new stripcodes command in your script:
| stripcodes <strip-flags> <string>
| Description: strips specified control characters from the string given.
| strip-flags can be any combination of the following:
| b - remove all boldface codes
| c - remove all color codes
| r - remove all reverse video codes
| u - remove all underline codes
| a - remove all ANSI codes
| g - remove all ctrl-g (bell) codes
| Returns: the stripped string.
| Module: core
Example:

Code: Select all

set input [stripcodes bcruag $text]
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
D
Dawnstar44
Voice
Posts: 7
Joined: Tue Feb 15, 2005 10:01 pm

Post by Dawnstar44 »

yes i am using the latest eggdrop i just took my upgrades.. so i need to add this to help ??
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Alchera wrote:If you're using the latest eggdrop you should consider using the new stripcodes command in your script:
is there a way to use stripcode for "bind pub - * proc" binds? I dont know about one ^-^. to take advantage from stripcodes, you need to change to a 'pubm "*!command*"' bind, but then it matches any leading control codes anyway :D.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

bind pub - $wnd(prefix) parse_data

proc parse_data {nick uhost hand chan text} {

        set chan [strlwr $chan]
	     set input [stripcodes bcruag $text]
        set cmd [lindex [split [strlwr $input]] 0]

	     switch $cmd {
               ........}
}
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked