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

	<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>2020-05-07T08:56:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-07T08:56:41-04:00</updated>

		<published>2020-05-07T08:56:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108390#p108390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108390#p108390"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108390#p108390"><![CDATA[
tnx in advance caesar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu May 07, 2020 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-07T07:26:49-04:00</updated>

		<published>2020-05-07T07:26:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108389#p108389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108389#p108389"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108389#p108389"><![CDATA[
@willyw : It takes a minimum of 2 or maximum of 3 arguments. The first being the channel, second is the mode change (if there's no + or - sign in the 'mode' then it will add a + by default) and finally last one is the argument one of the modes that need one, for example limit or channel key.<br><br>I looked at the code and don't see where the snag comes from.<br><br>@simo: You talk about two things in one:<br><br>- one function that would stack let's say you got 20 elements and want to take out 5 at a time. This is doable and isn't much of an issue.<br><br>- 'single modes' to be stacked that's basically means reinventing the wheel, or simpler put a new queue system that would accept any form of input and stack the output in a time frame.<br><br>Wouldn't be easier if you try to send a stack stuff to be split or delay those  single mode change until would have a stack in your proc?<br><br>I'll have a try at this but not right now cos got some stuff at work that need my attention.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 07, 2020 7:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-07T04:07:02-04:00</updated>

		<published>2020-05-07T04:07:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108388#p108388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108388#p108388"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108388#p108388"><![CDATA[
The thing about pushmode is u cant send for example: pushmode $chan +bo-v bmask nick nick and a normal mode setting like the example you gave would not even be set if max allowed on ircd was exceeded not to mention it does not do any stacking by itself. <br>The idea with a custom pushmode proc is it would take both stacked and single modes and stack them using modes-per-line and wouldnt have any limitations when it comes to chanmodes like pushmode seems to have<br>i hope the point im trying to make is a bit more clear<br><br>Tnx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu May 07, 2020 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-05-07T01:33:48-04:00</updated>

		<published>2020-05-07T01:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108387#p108387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108387#p108387"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108387#p108387"><![CDATA[
<blockquote class="uncited"><div>I looked at eggdrop's source code on GitHub and I don't see anything limiting what modes the 'pusmode' can set:</div></blockquote>I suspect that the problem isn't that.  I think it is that pushmode can take another argument, with only some modes.   An example would be +o .<br>As in:  pushmode #chan +o somenick<br><br>I think that +a is such a mode where it cannot.  And I think that's where the snag is.  It's not taking a nick as an argument, after the mode value - if it is "a".<br><br>Let's see what the original poster has to say. I hope understood it.<br><br>To really be sure of what is going on, wouldn't the thing to do be : enable the use of the r and v flags in the console, for bot owner, and then add them to console?<br>THEN do the  .tcl  command you proposed, along with some others,  and compare and really see what is going on?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu May 07, 2020 1:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-07T00:56:35-04:00</updated>

		<published>2020-05-07T00:56:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108386#p108386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108386#p108386"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108386#p108386"><![CDATA[
I looked at eggdrop's source code on GitHub and I don't see anything limiting what modes the 'pusmode' can set:<div class="codebox"><p>Code: </p><pre><code>static int tcl_pushmode STDVAR{  struct chanset_t *chan;  char plus, mode;  BADARGS(3, 4, " channel mode ?arg?");  chan = findchan_by_dname(argv[1]);  if (chan == NULL) {    Tcl_AppendResult(irp, "invalid channel: ", argv[1], NULL);    return TCL_ERROR;  }  plus = argv[2][0];  mode = argv[2][1];  if ((plus != '+') &amp;&amp; (plus != '-')) {    mode = plus;    plus = '+';  }  if (argc == 4)    add_mode(chan, plus, mode, argv[3]);  else    add_mode(chan, plus, mode, "");  return TCL_OK;}</code></pre></div>If you do a<div class="codebox"><p>Code: </p><pre><code>.tcl puthelp "MODE #channel +a"</code></pre></div>for example, dose it work?<br><br>Apart the 'a' flag, what other channel flags don't work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 07, 2020 12:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-06T12:44:27-04:00</updated>

		<published>2020-05-06T12:44:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108385#p108385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108385#p108385"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108385#p108385"><![CDATA[
if your willing to help out would be apreciated caesar or anyone else who knows tcl the idea is to be able to send stacked and single modes to massmode and to have massmode stack them by itselve just like pushmode does only pushmode doesnt recognize all chanmodes thets the reason for wanting to use a custom pushmode that makes it also usefull for scripts i use that send single modes in mass but sent one by one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed May 06, 2020 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-05T17:47:42-04:00</updated>

		<published>2020-05-05T17:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108384#p108384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108384#p108384"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108384#p108384"><![CDATA[
why not just like this<br><div class="codebox"><p>Code: </p><pre><code>putserv "mode $chan +a"putserv "mode $chan +a"putserv "mode $chan +a"</code></pre></div>or something like that use that as a example<br>all under the same proc<br><br>and you can replace putserv with putnow or putquick  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue May 05, 2020 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-05T14:36:02-04:00</updated>

		<published>2020-05-05T14:36:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108383#p108383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108383#p108383"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108383#p108383"><![CDATA[
would this also be possible to send a lot of single modes and have  it compress it in strings of 15 caesar instead of sending stacked modes to the proc ?<br><br>for example you send like 20 modes at it and it compresses them into stacks of max 15<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue May 05, 2020 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-05T11:09:56-04:00</updated>

		<published>2020-05-05T11:09:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108382#p108382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108382#p108382"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108382#p108382"><![CDATA[
again hehe <br>ComputerTech said before<div class="codebox"><p>Code: </p><pre><code>if it's for pushmode +a for admin of a user thats different </code></pre></div>thats what i said  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>anyway yeah<br>note putnow used too much can get your bot in trouble depending on the ircd the bot is on<br>hehe i got in trouble before ever since i use putserv same thing slightly slower. but if your just putnow for channel modes it should be alright  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue May 05, 2020 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-04T18:00:44-04:00</updated>

		<published>2020-05-04T18:00:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108381#p108381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108381#p108381"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108381#p108381"><![CDATA[
hey there caesar, and yes it is a valid cmode on the ircd im using and others as well its admin cmode &amp; and about the putdccraw i changed that to putnow<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 04, 2020 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-04T15:38:48-04:00</updated>

		<published>2020-05-04T15:38:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108379#p108379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108379#p108379"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108379#p108379"><![CDATA[
Caesar said <div class="codebox"><p>Code: </p><pre><code>Sorry if this sounds stupid, but is that 'a' a valid or even allowed channel mode in the first place? Btw, putdccraw was deprecated so instead you should use putdcc or putnow (have a look at 'scripts/compat.tcl' that comes with the eggdrop). </code></pre></div>thats what i said never seen "a" as a channel mode<br><br>i still think putnow putquick,putserv would do the trick  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br>as i said at the start  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Mon May 04, 2020 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-04T11:35:47-04:00</updated>

		<published>2020-05-04T11:35:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108376#p108376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108376#p108376"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108376#p108376"><![CDATA[
tnx once again for your reaction caesar i tested just now let me show u the results<br><blockquote class="uncited"><div>17:34:22 &lt;+simo&gt; .b Anaya Archibald Arturo Ashleigh Benjamin Britton Carlito Eartha Frame Holley Homer Lange Lavender Layla Leary Mcgrath Mckenna Mendenhall Proffitt Saenz Salerno Samuel Sharkey Simone<br>17:34:22  @TCL-Tester  Sets Mode on  #tcl-test  to:  +bbbbbbbbbbbbbbb *!*@123.149.76.44 *!*@nqpu:lqx1:0:e565::yr4u:r40g *!*@4MSJ76KF.IGHX27CM.2G2DUIY0.IP *!*@kn2l:s86p:8:e321::8802:98d2 *!*@31.222.222.232 *!*@112.97.54.150 *!uid304591@* *!*@a247:6384:3:3veg::k0n8:vi9u *!*@23.13.13.12 *!uid73149@* *!*@BVRQVAGE.S4KES3EI.I12G26PR.IP *!*@131.178.177.68 *!*@81.81.182.78 *!*@0m1f<img alt=":39c9:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/39c9.svg">3:r6lc::v055:iy8q *!*@50.150.158.125 <br>17:34:22  (13 Users) Are Banned  Anaya Archibald Arturo Ashleigh Benjamin Britton Carlito Frame Holley Homer Lange Lavender Leary <br>17:34:22  @TCL-Tester  Sets Mode on  #tcl-test  to:  +bbbbbbbbb *!sid27555@* *!*@133.81.84.82 *!*@80.23.182.76 *!*@233.331.11.233 *!*@Cloaked-b6r.530.61.13.IP *!*@Cloaked-u0i.890.20.71.IP *!uid41669@* *!sid24364@* *!*@19.39.234.95 <br>17:34:23  (9 Users) Are Banned  Mcgrath Mckenna Mendenhall Proffitt Saenz Salerno Samuel Sharkey Simone <br>17:34:23  @TCL-Tester  Sets Mode on  #tcl-test  to:  -vvvvvvvvvvvvvvv Anaya Archibald Arturo Ashleigh Benjamin Britton Carlito Eartha Frame Holley Homer Lange Lavender Layla Leary <br>17:34:23  @TCL-Tester  Sets Mode on  #tcl-test  to:  -vvvvvvvvv Mcgrath Mckenna Mendenhall Proffitt Saenz Salerno Samuel Sharkey Simone </div></blockquote><br>in this case the ircd allows 15 modes per line but it sets less in some and we wanted it to be compressed in modes-per-line as much as possible to have it use less lines in channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 04, 2020 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-04T09:43:24-04:00</updated>

		<published>2020-05-04T09:43:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108375#p108375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108375#p108375"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108375#p108375"><![CDATA[
Sorry if this sounds stupid, but is that 'a' a valid or even allowed channel mode in the first place?<br><br>Btw, <em class="text-italics">putdccraw</em> was deprecated so instead you should use <em class="text-italics">putdcc</em> or <em class="text-italics">putnow</em> (have a look at 'scripts/compat.tcl' that comes with the eggdrop).<br><br>You want to push out fast stacks of modes? putquick is too slow?<br><br>Edit: How would a line to voice A, B and C and ban *!*@a.com,  *!*@b.com and *!*@c.com look like?<br><br>I mean dose it look like:<blockquote class="uncited"><div>+vvv+bbb A B C *!*@a.com *!*@b.com *!*@c.com</div></blockquote>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 04, 2020 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-04T06:55:15-04:00</updated>

		<published>2020-05-04T06:55:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108374#p108374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108374#p108374"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108374#p108374"><![CDATA[
I just had 1 thing i was wondering if the massmode proc could be modified to handle multiple modes to lessen the amount of lines and have it compress modes as much as possible <br>For example: massmode $chan -v+b [join nicks][join bmasks]<br>Instead of sending it like<br>massmode $chan  -v [join nicks] <br>massmode $chan +b [join bmasks] <br><br>Thanx in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon May 04, 2020 6:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-05-02T08:36:28-04:00</updated>

		<published>2020-05-02T08:36:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108366#p108366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108366#p108366"/>
		<title type="html"><![CDATA[custom pushmode]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108366#p108366"><![CDATA[
i modified it and it seems to be working as intended without errors or complaints<br><br>i like to thank user who wrote it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 02, 2020 8:36 am</p><hr />
]]></content>
	</entry>
	</feed>
