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

	<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>2021-09-10T17:30:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-09-10T17:30:08-04:00</updated>

		<published>2021-09-10T17:30:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110322#p110322</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110322#p110322"/>
		<title type="html"><![CDATA[Re: hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110322#p110322"><![CDATA[
<blockquote class="uncited"><div>..., but is set and unset mode now on join</div></blockquote><br>Gulio: Try replacing this line of code...<div class="codebox"><p>Code: </p><pre><code>utimer $::timemode [list [putquick "SAMODE $vchan -$::chanmode"]]</code></pre></div>with something more like...<div class="codebox"><p>Code: </p><pre><code>utimer $::timemode [list putquick "SAMODE $vchan -$::chanmode"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Sep 10, 2021 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T20:41:02-04:00</updated>

		<published>2021-09-09T20:41:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110319#p110319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110319#p110319"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110319#p110319"><![CDATA[
CracyCat<br>Need to kill time when a user join before expire time of unset mode so can start from start to count time maybe<br>but is ok thx a lot from ur help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-09-09T19:00:27-04:00</updated>

		<published>2021-09-09T19:00:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110318#p110318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110318#p110318"/>
		<title type="html"><![CDATA[set mode on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110318#p110318"><![CDATA[
<blockquote class="uncited"><div>CrazyCat: I think I might change this line of code...<br>[string first ..] returns -1 for "not found", not 0</div></blockquote>Yes, quick code, untested, it was more to show how it can be done and to explain how it works.<br><br>Thx SpiKe^^ <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>If the user join 1 min after bot unset mode -E to set again evry time when or to stay +E is match hostmask *.mibbit.com till is not enter again<br>yes samode is for ircops opers flags command</div></blockquote>You don't answer my questions:<br>- what happen if the user join 1 minute <strong class="text-strong">before</strong> the unset ? actually, the initial unset will act. Let me show you:<br>&lt;14:40:00&gt; <a href="mailto:user1@abc.mibbit.com">user1@abc.mibbit.com</a> joined #dummy<br>&lt;14:40:01&gt; bot sets mode +E on #dummy<br>&lt;15:39:00&gt; <a href="mailto:user2@abc.mibbit.com">user2@abc.mibbit.com</a> joined #dummy<br>&lt;15:39:01&gt; (nothing, #dummy is already +E)<br>&lt;15:40:01&gt; bot sets mode -E on #dummy<br>&lt;16:39:01&gt; (nothing, #dummy is already -E)<br><br>And I know SAMODE is for services admin (not "ircops", some ircops), my question was to know if this mode can be set by a "simple" operator of the chan.<br><br>But as each time I try to help you, I say "never again", now I promise I stop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Sep 09, 2021 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T14:03:04-04:00</updated>

		<published>2021-09-09T14:03:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110317#p110317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110317#p110317"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110317#p110317"><![CDATA[
Spike^^ yes u right ur fix now works thx, but is set and unset mode now on join<br><div class="codebox"><p>Code: </p><pre><code>[20:59:50] * Joins: pheleas_frog (59d2ec67@Test-AED0FB6F.mibbit.com) [20:59:51] * irc.Test.com sets mode: +E[20:59:51] * irc.Test.com sets mode: -E</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-09-09T13:49:24-04:00</updated>

		<published>2021-09-09T13:49:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110316#p110316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110316#p110316"/>
		<title type="html"><![CDATA[set mode on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110316#p110316"><![CDATA[
CrazyCat: I think I might change this line of code...<div class="codebox"><p>Code: </p><pre><code>if {![string first [string tolower $chan] $::chanban] || [isbotnick $nick]} { return 0 }</code></pre></div>to something more like...<div class="codebox"><p>Code: </p><pre><code>if {([string first [string tolower $chan] $::chanban] == -1) || [isbotnick $nick]} { return 0 }</code></pre></div>[string first ..] returns -1 for "not found", not 0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Sep 09, 2021 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T13:57:01-04:00</updated>

		<published>2021-09-09T13:48:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110315#p110315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110315#p110315"/>
		<title type="html"><![CDATA[Hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110315#p110315"><![CDATA[
If the user join 1 min after bot unset mode -E to set again evry time when or to stay +E is match hostmask *.mibbit.com till is not enter again<br>yes samode is for ircops opers flags command<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-09-09T09:55:09-04:00</updated>

		<published>2021-09-09T09:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110313#p110313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110313#p110313"/>
		<title type="html"><![CDATA[set mode on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110313#p110313"><![CDATA[
It's worst than the previous...<br><br>Here is a small version, with explanations inline<br><div class="codebox"><p>Code: </p><pre><code>set chanban "#test1 #test2"set checkdomain {"*.mibbit.com"}set chanmode "E"set timemode "60"bind join - * banmibbitproc banmibbit {nick uhost hand chan} {if {![string first [string tolower $chan] $::chanban] || [isbotnick $nick]} { return 0 }# exit if the joined channel is not in $chanban or if the bot is joiningforeach dom $::checkdomain {# loop on each domain to checkif {![string match -nocase $dom $uhost]} { continue }# if user host doesn't match the domain, we continue (don't do the following)foreach vchan [split $::chanban] {# loop on each chan in $chanbanputquick "SAMODE $vchan +$::chanmode"# do the SAMODE (just +E ?)utimer $::timemode [list [putquick "SAMODE $vchan -$::chanmode"]]# after the timer, the remove of the +E}}}</code></pre></div>Note that this doesn't correct the trouble I specified: what happen if a mibbit user joins after 59 minutes ? The +E will be removed 1 min later, and 1h later, a try to do a -E will be done too.<br><br>Another point: why SAMODE ? only Services Admin can set the +E on a chan ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Sep 09, 2021 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T04:17:29-04:00</updated>

		<published>2021-09-09T04:17:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110312#p110312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110312#p110312"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110312#p110312"><![CDATA[
and now how need to be ? now no errors but is not set mode on channels<br><div class="codebox"><p>Code: </p><pre><code>set chanban "#test1 #test2"set checkdomain {"*.mibbit.com"}set chanmode "E"set timemode "60"bind join - * banmibbitproc banmibbit {nick host hand chan} {global chanban checkdomain chanmode timemodeif {![isbotnick $nick]} { return 0 }foreach checkdomain $chanban {if {[string match $checkdomain $chanban]} {putquick "samode $chanban +$chanmode"utimer 60 [list $timemode]putquick "samode $chanban -$chanmode"}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T04:07:18-04:00</updated>

		<published>2021-09-09T04:07:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110311#p110311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110311#p110311"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110311#p110311"><![CDATA[
mode +E is my module who block users with this hostmask of mibbit to talk in channe'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-09-09T03:54:38-04:00</updated>

		<published>2021-09-09T03:54:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110310#p110310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110310#p110310"/>
		<title type="html"><![CDATA[set mode on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110310#p110310"><![CDATA[
What is exactly the +E mode ?<br>And who did this script for you ? It does (when errors are corrected) exactly the invert of what you want.<br><br>Let me explain your script:<div class="codebox"><p>Code: </p><pre><code>set chanban "#test1 #test2"set checkdomain {"*.mibbit.com"}set chanmode "E"set timemode "60"bind join - * banmibbitproc banmibbit {nick host hand chan} {   global chanban checkdomain chanmode timemode   if {![chan gets $chanban] || [isbotnick $nick]} { return 0 }# [chan gets $chanban] is an error, so you alway exit from the proc   foreach checkdomain $chanban {      if {[string match $checkdomain $chanban]} { return }# if domain is mibbit.com, you exit from the proc ???      foreach chan $chanban {# reuse of $chan is a bad idea. And $chanban is not a list         putquick "samode $chanban +$chanmode"# you send the command "samode #test1 #test2 +E" ???      } else {# foreach ... else ... ? WTF ?         utimer 60 [list $timemode]# what is doing your utimer ?         putquick "samode $chanban -$chanmode"# you send the command "samode #test1 #test2 -E" ???      }   }}</code></pre></div>And what happen if another mibbit user join the chan during the delay? the mode +E is sent, but the first timer (when corrected) will remove it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Sep 09, 2021 3:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gulio]]></name></author>
		<updated>2021-09-09T01:13:27-04:00</updated>

		<published>2021-09-09T01:13:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110309#p110309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110309#p110309"/>
		<title type="html"><![CDATA[set mode on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110309#p110309"><![CDATA[
i want to set samode both 2 channels +E when is match hostmask *.mibbit.com on join and to unset mode channels after 60 min<br>can someone help thx in advance<br><div class="codebox"><p>Code: </p><pre><code>Joins: mib_ufoo9l (59d2ec67@Test-B3B25F2D.mibbit.com)</code></pre></div><div class="codebox"><p>Code: </p><pre><code>set chanban "#test1 #test2"set checkdomain {"*.mibbit.com"}set chanmode "E"set timemode "60"bind join - * banmibbitproc banmibbit {nick host hand chan} {global chanban checkdomain chanmode timemodeif {![chan gets $chanban] || [isbotnick $nick]} { return 0 }foreach checkdomain $chanban {if {[string match $checkdomain $chanban]} { return }foreach chan $chanban {putquick "samode $chanban +$chanmode"} else {utimer 60 [list $timemode]putquick "samode $chanban -$chanmode"}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12887">Gulio</a> — Thu Sep 09, 2021 1:13 am</p><hr />
]]></content>
	</entry>
	</feed>
