<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/513" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2001-12-04T15:34:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/513</id>

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-04T15:34:00-04:00</updated>

		<published>2001-12-04T15:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2441#p2441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2441#p2441"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2441#p2441"><![CDATA[
<blockquote class="uncited"><div>#   when a ban is set, kick people who are on the channel and match the<br>#   new ban?  (i.e., they were on the channel before the ban)<br>channel set #lamest +enforcebans</div></blockquote>For bans in general. If this where to say "bans set using .+ban" then you would be right.<br><br>.+ban is used to make enforced bans, no matter what the "enforcebans" setting is.<br><br>The "enforcebans" setting is regarding bans set by others in the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Dec 04, 2001 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-04T13:25:00-04:00</updated>

		<published>2001-12-04T13:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2438#p2438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2438#p2438"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2438#p2438"><![CDATA[
pplsim, thx for that, I'm subscribing to that list to follow this up. My reasoning is this, from the config file:-<br><br>#   when a ban is set, kick people who are on the channel and match the<br>#   new ban?  (i.e., they were on the channel before the ban)<br>channel set #lamest +enforcebans<br><br>So, setting -enforcebans should not kick people who are on channel when the ban is set and who match the mask. So, it seems to me that the enforcebans flag doesnt work. I understand the reasoning behind kicking on matched user in channel like you said, just don't uderstand why enforcebans flag is there then since it doesnt do anything!<br><br>cheers for your help<br>AjK<p>Statistics: Posted by Guest — Tue Dec 04, 2001 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-04T13:17:00-04:00</updated>

		<published>2001-12-04T13:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2437#p2437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2437#p2437"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2437#p2437"><![CDATA[
I have contacted eggdev, and they have replied on the subject.<br><br>This is the way eggdrop works. Eggdrop is designed to set perminant bans on people (and time limted bans). Bans are designed to keep people out, and this is what eggdrop does.<br><br>This is the right way for eggdrop to do things.<br><br>Signup for the eggheads mailing list @ <a href="http://www.eggheads.org" class="postlink">http://www.eggheads.org</a> and follow the link.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Dec 04, 2001 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-04T11:34:00-04:00</updated>

		<published>2001-12-04T11:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2432#p2432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2432#p2432"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2432#p2432"><![CDATA[
ppslim, cheers for that. I am currently running a patched bot of this type to test it. If I find it breaks elsewhere, I'll repost, just thought I try help maybe provide a pointer to two. It would be great to know where I could follow up on this in a "debug" forum if that's ok?<br><br>cheers,<br>AjK<p>Statistics: Posted by Guest — Tue Dec 04, 2001 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-04T11:30:00-04:00</updated>

		<published>2001-12-04T11:30:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2430#p2430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2430#p2430"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2430#p2430"><![CDATA[
This is most likely to break functionanity elsewhere.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Dec 04, 2001 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-04T09:45:00-04:00</updated>

		<published>2001-12-04T09:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2418#p2418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2418#p2418"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2418#p2418"><![CDATA[
ppslim, thx for the clarification. If the rest of this post belongs in another forum or mailing list then my apologies in advance. <br><br>After diving thru the code I found this function, refresh_ban_kick(), that seems responsible for making sure the ban list is all in order. It appears to have a call to kick_all() at the end. If I comment out that call, then I get the functionality I expected. However, I don't know if that breaks another part of eggdrop I'm not aware of.<br><br>cheers,<br>AjK<br><br>fyi<br>src/mod/irc.mod/chan.c<br><br><br>static void refresh_ban_kick(struct chanset_t *chan, char *user, char *nick)<br>{<br>  register maskrec      *b;<br>  memberlist            *m;<br>  int                    cycle;<br><br>  m = ismember(chan, nick);<br>  if (!m)<br>    return;<br>  /* Check channel bans in first cycle and global bans<br>     in second cycle. */   <br>  for (cycle = 0; cycle &lt; 2; cycle++) {<br>    for (b = cycle ? chan-&gt;bans : global_bans; b; b = b-&gt;next) {<br>      if (wild_match(b-&gt;mask, user)) {<br>        struct flag_record      fr = {FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0};<br>        char                    c[512];         /* The ban comment.     */<br>        char                    s[UHOSTLEN];<br>  <br>        sprintf(s, "%s!%s", m-&gt;nick, m-&gt;userhost);<br>        get_user_flagrec(m-&gt;user ? m-&gt;user : get_user_by_host(s), &amp;fr,<br>                         chan-&gt;dname);<br>        if (!glob_friend(fr) &amp;&amp; !chan_friend(fr))<br>          add_mode(chan, '-', 'o', nick);       /* Guess it can't hurt. */<br>        check_exemptlist(chan, user);<br>        do_mask(chan, chan-&gt;channel.ban, b-&gt;mask, 'b');  <br>        b-&gt;lastactive = now;<br>        if (b-&gt;desc &amp;&amp; b-&gt;desc[0] != '@')<br>          egg_snprintf(c, sizeof c, "%s%s", IRC_PREBANNED, b-&gt;desc);<br>        else<br>          c[0] = 0;<br>        kick_all(chan, b-&gt;mask, c[0] ? c : IRC_YOUREBANNED, 0); <br>        return;                                 /* Drop out on 1st ban. */<br>      }<br>    }<br>  }<br>}<br><br>also, forgot to mention, found this in src/chan.h<br><br>#define CHAN_ENFORCEBANS 0x0001 /* kick people who match channel bans */<br>#define channel_enforcebans(chan) (chan-&gt;status &amp; CHAN_ENFORCEBANS)<br><br>So, I changed the call to kick_all() in refresh_ban_kick() from this:-<br><br> kick_all(chan, b-&gt;mask, c[0] ? c : IRC_YOUREBANNED, 0); <br><br>to this:-<br><br> if (channel_enforcebans(chan)) { kick_all(chan, b-&gt;mask, c[0] ? c : IRC_YOUREBANNED, 0);}<br><br>This seems to provide the functionality of -enforcebans that I expected. Sorry, just my 2p worth, cheers, AjK <br><br><br><br>&lt;font size=-1&gt;[ This Message was edited by: AjK on 2001-12-04 08:05 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Tue Dec 04, 2001 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-03T16:49:00-04:00</updated>

		<published>2001-12-03T16:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2394#p2394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2394#p2394"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2394#p2394"><![CDATA[
This is the way eggdrop works, allthough, it shouldn't.<br><br>I will make a note to eggdev about this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Dec 03, 2001 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-03T09:38:00-04:00</updated>

		<published>2001-12-03T09:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2373#p2373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2373#p2373"/>
		<title type="html"><![CDATA[question regarding bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2373#p2373"><![CDATA[
Hi, quick question on the funcationality of bans I've not been able to find an answer to else where.<br><br>When I set a ban interactivly with a client like bitchx/kvirc/mirc and the nick is currently in the channel, that user cannot send text to the channel. I expected this. However, if I use my eggdrop (1.6.6) to set the ban, the nick in the channel is also kicked. Didn't expect the kick? Have I understood this functionality corretcly? Why did the eggdrop kick the user?<br><br>cheers, AjK<br><br>fyi if it helps:-<br>Other modes:<br> -inactive    -statuslog<br> +secret      -shared<br> -greet       -seen<br> -cycle       +dontkickops<br> +protectops  +protectfriends <br> -revenge     -revengebot<br> -bitch       -autoop<br> +autovoice   +nodesynch<br> -enforcebans +dynamicbans<br> +userbans    +dynamicexempts<br> +userexempts +dynamicinvites<br> +userinvites <br><br><p>Statistics: Posted by Guest — Mon Dec 03, 2001 9:38 am</p><hr />
]]></content>
	</entry>
	</feed>
