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.

Ban Msg

General support and discussion of Eggdrop bots.
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Ban Msg

Post by intel »

I set a ban say *!*tests@123.nyrr.com and have the reason as msg intel ( .+ban *!*tests@123.nyrr.com Msg intel) When the user comes into the channel it just says banned. Does the banned user just see banned or he gets full reason Msg Intel?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

* bot sets mode: +b *!*tests@123.nyrr.com
* test has been kicked by bot (Msg intel)
It would look just like it does above. Since you've given no duration (%XdXhXm-X being numerals) for the ban, it will not expire either. If you instead had placed the ban without a reason it will use only the word banned.
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

I'm confused. I know it won't expire, thats fine. If I don't give a reason how does it know what to say for ban reason??
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

intel wrote:I'm confused. I know it won't expire, thats fine. If I don't give a reason how does it know what to say for ban reason??
In your /eggdrop/language folder you will find core.*.lang (* being the language you set your bot to) just find the part below:
/eggdrop/language/core.english.lang wrote:# IRC_
0x600,Banned
This is the default ban message your eggdrop will use when no reason is given. Changing this changes the default message. You can customize almost every eggdrop message in this maner.

Note as well that since your ban doesn't mention which channel to enforce it within, the eggdrop will enforce it globally on all channels it has ops in.
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

But I dont want the same message for everyone. If I do a ban with a reason shouldn't it say the reason?
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

intel wrote:But I dont want the same message for everyone. If I do a ban with a reason shouldn't it say the reason?
It will if you make sure there isn't any other ban set that preceeds it. Eggdrop bans in order of appearance in the ban list. You should be able to type .bans and see if any other ban (without a reason) is happening before the ban your expecting to happen. What that means is the person your trying to ban more than likely fits the mask on more than one ban. The ban affecting them has no reason and comes before the ban your setting with a reason.
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

its the first and only ban.

[ 1] *!*tests@C0c5c05cdc-m (perm)
Intel: msg Intel
Tbot Created 02:58, last used 13:44
Tbot Channel bans for #test: (* = not placed by bot)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Also worth keeping in mind, if your eggdrop sees the ban being placed (other than by its builtin kick/ban mechanisms), it will use the default ban reason. That includes if some other user and/or bot sets the ban in question, as well as having a custom script doing the banning, and "bypassed" bans already present in the channel (only applicable on some irc servers).

Or, more specific, the ban comment will only be used as kick-reason if the ban is not already placed on the channel, your eggdrop's internal mechanisms detect that this ban should be activated, and it does the banning and kicking itself.
NML_375
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

Ok I am still confused. There are no bans on channel. This is the first ban listed so I still dont follow why the reason is not showing.
I have 1 linked bot but that uses the masters userdb and then ban / ban reason is the same.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Could you verify that the bot banning is the very same bot that also kicks?
In some cases, network lag and penalty points causes the other bot to see the ban (and do the kick with standard reason) before the first one manages to kick the offender.
NML_375
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

The same bot is doing it.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

And I guess there are no +k users (or +dk) in your userlist matching the offender either? (.match +k)
NML_375
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

.match +k
Tbot> *** Matching '+k':
Tbot> HANDLE PASS NOTES FLAGS LAST
Tbot> --- Found 0 matches.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I'm puzzled..
All else I could think of would be conflicting global and channel bans.
NML_375
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

nml375 wrote:I'm puzzled..
All else I could think of would be conflicting global and channel bans..
One other thing to ask, just for sake of following every possible avenue. He may just have his net-type set incorrectly and other odd behaviors are also happening besides just lacking a reason with a properly set bot-ban. This is an often overlooked setting.
Post Reply