Did the users set a password & has the bot stored a host for them?? check in bot dcc type .match (user nick here)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
Code: Select all
.+user awyeah
.chattr awyeah nm
.+host awyeah!*awyeah@awyeah.org
.chpass awyeah awyeah.ownsyou
.save
;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
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.......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
Example:| 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
Code: Select all
set input [stripcodes bcruag $text]
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 .Alchera wrote:If you're using the latest eggdrop you should consider using the new stripcodes command in your script:
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 {
........}
}