<?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/9382" />

	<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>2005-04-11T15:35:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LanEvo]]></name></author>
		<updated>2005-04-11T15:35:32-04:00</updated>

		<published>2005-04-11T15:35:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48035#p48035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48035#p48035"/>
		<title type="html"><![CDATA[public !resync command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48035#p48035"><![CDATA[
gotcha, seems like the max for the network i use (GameSurge) is 6:<br><br>-!- ANNOUNCE WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE SILENCE=15 MODES=6<br>MAXCHANNELS=20 MAXBANS=45 NICKLEN=30 MAXNICKLEN=30 are supported by this server<br>-!- TOPICLEN=300 AWAYLEN=200 KICKLEN=300 CHANTYPES=#&amp; PREFIX=(ov)@+<br>CHANMODES=b,k,l,imnpstrDcC CASEMAPPING=rfc1459 NETWORK=GameSurge are supported by<br>this server<br><br>[3:31:pm] * eggie sets mode: +vvvvvv bot1 bot2 bot3 bot4 bot5 bot6<br>[3:31:pm] * eggie sets mode: +vv bot7 bot8<br><br>thanks for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4995">LanEvo</a> — Mon Apr 11, 2005 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-11T15:21:19-04:00</updated>

		<published>2005-04-11T15:21:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48034#p48034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48034#p48034"/>
		<title type="html"><![CDATA[public !resync command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48034#p48034"><![CDATA[
It depends upon your IRCd as well. As far as I know bahamut has maximum 6 mode changes per line for users as well as for IRC operators. However on netsplit rejoins I've seen the count go upto 8 or 9 mode changes per lines for servers.<br><br>And as for services, there can be many as you like, supposingly if you send raw text to services for changing channel modes.<br><br>See this in the .conf file:<br><blockquote class="uncited"><div>### IRC MODULE - OTHER NETWORKS (net-type 5) ###<br><br># Some networks allow you to stack lots of channel modes into one line.<br># They're all guaranteed to support at least 3, so that's the default.<br># If you know your network supports more, you may want to adjust this.<br># This setting is limited to 6, although if you want to use a higher value,<br># you can modify this by changing the value of MODES_PER_LINE_MAX in<br># src/chan.h and recompiling the bot.<br>set modes-per-line 3</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Apr 11, 2005 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LanEvo]]></name></author>
		<updated>2005-04-11T15:16:58-04:00</updated>

		<published>2005-04-11T15:16:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48033#p48033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48033#p48033"/>
		<title type="html"><![CDATA[public !resync command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48033#p48033"><![CDATA[
great, it works for me. thanks for the help<br><br>but i guess it seems like the max number of mode changes per line is 4 and not 6, i guess that's how mirc works. someone suggested reading rfc1459 but it hurt my eyes.<br><br>i tested it out with 8 bots that have the necessary +A flag to be voiced, but are devoiced for now:<br><br>[3:11:pm] &lt;LanEvo&gt; !resync<br>[3:11:pm] * eggie sets mode: +vvvv bot1 bot2 bot3 bot4<br>[3:11:pm] * eggie sets mode: +vvvv bot5 bot6 bot7 bot8<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4995">LanEvo</a> — Mon Apr 11, 2005 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-11T02:06:00-04:00</updated>

		<published>2005-04-11T02:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47984#p47984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47984#p47984"/>
		<title type="html"><![CDATA[Re: public !resync command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47984#p47984"><![CDATA[
My best guess here would be use pushmode after which call flushmode so that the maximum number of mode changes are sent per line, normally 6.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!resync" pub:resyncproc pub:resync {nick uhost hand chan ext} {  foreach ext [chanlist $chan] {   if {[matchattr $ext A]} {    pushmode $chan +v $ext   } else {    pushmode $chan -v $ext    }  } flushmode $chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Apr 11, 2005 2:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LanEvo]]></name></author>
		<updated>2005-04-11T00:27:26-04:00</updated>

		<published>2005-04-11T00:27:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47980#p47980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47980#p47980"/>
		<title type="html"><![CDATA[public !resync command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47980#p47980"><![CDATA[
I'm trying to imitate the ChanServ command !resync<br><br>basically, it sets mode +o/v to the users that have the proper access, -o/v to the ones that don't, all at once<br><br>in my case, the peons all have +A flags.<br><br>the code (it's nub):<br><br>bind pub - "!resync" pub:resync<br>proc pub:resync {nick uhost hand chan ext} {<br> global botnick<br> foreach ext [chanlist $chan] {<br> if {[matchattr $ext A]} {<br> putquick "MODE $chan +v $ext"<br>  } else {<br> putquick "MODE $chan -v $ext"<br>  }<br> }<br>}<br><br>expectedly, the bot does this when i use the !resync command (3 users with +A are devoiced, one user with -A is voiced):<br><br>[12:17:am] * eggie sets mode: +v bot1<br>[12:17:am] * eggie sets mode: +v bot2<br>[12:17:am] * eggie sets mode: +v bot3<br>[12:17:am] * eggie sets mode: -v bot4<br><br>how would the proc go so that it does -v+vvv bot4 bot1 bot2 bot3 and the number of -v/+v corresponds with the numbers of users?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4995">LanEvo</a> — Mon Apr 11, 2005 12:27 am</p><hr />
]]></content>
	</entry>
	</feed>
