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

	<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>2023-10-15T01:25:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2023-10-15T01:25:00-04:00</updated>

		<published>2023-10-15T01:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112228#p112228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112228#p112228"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112228#p112228"><![CDATA[
<blockquote class="uncited"><div>try this : <br><div class="codebox"><p>Code: </p><pre><code>bind pub n !gline PubAdd:G-Lineproc PubAdd:G-Line {nick host hand chan text} {  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  set items [split $text] if {[llength $items] &lt; 1 } { putserv "notice $nick :Syntax\: !gline  \&lt;duration\&gt; \&lt;ident@host\&gt; \&lt;reason\&gt;" ; return }  set target [lindex [split $text] 0]  set duration [lindex [split $text] 1] if {![regexp {^[0-9]{1,3}} $duration] || $duration eq ""} {  set duration "1h" }  set reason [join [lrange [split $text] 2 end]] if {$reason eq ""} { set reason "Please respect the network rules, thank you." } if {![onchan $target $chan]} { if {[string match *@* $target]} { putserv "GLINE $target $duration $reason"  } else {  putserv "GLINE *@$target $duration $reason"  } } else {  putserv "GLINE $target $duration $reason"   }}</code></pre></div></div></blockquote><br>simo,<br><br>can you add the command into this.<br><br>!gline nick duration reason<br><br><br>(when doing that command it should glined the &lt;ident@host&gt;)<br><br>i think this is much easier.<br><br><br>my suggestion only.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Sun Oct 15, 2023 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-10-13T06:07:52-04:00</updated>

		<published>2023-10-13T06:07:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112225#p112225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112225#p112225"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112225#p112225"><![CDATA[
i have edited it a bit so the *@ is added if not used in $target as thats what gline <br><br>takes <a href="mailto:user@some.host.here.com">user@some.host.here.com</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Oct 13, 2023 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yusif]]></name></author>
		<updated>2023-10-13T00:57:25-04:00</updated>

		<published>2023-10-13T00:57:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112224#p112224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112224#p112224"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112224#p112224"><![CDATA[
thank you simo, i will try that and update result here .<br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13021">Yusif</a> — Fri Oct 13, 2023 12:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-10-13T06:06:40-04:00</updated>

		<published>2023-10-10T10:36:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112223#p112223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112223#p112223"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112223#p112223"><![CDATA[
try this : <br><div class="codebox"><p>Code: </p><pre><code>bind pub n !gline PubAdd:G-Lineproc PubAdd:G-Line {nick host hand chan text} {  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  set items [split $text] if {[llength $items] &lt; 1 } { putserv "notice $nick :Syntax\: !gline  \&lt;duration\&gt; \&lt;ident@host\&gt; \&lt;reason\&gt;" ; return }  set target [lindex [split $text] 0]  set duration [lindex [split $text] 1] if {![regexp {^[0-9]{1,3}} $duration] || $duration eq ""} {  set duration "1h" }  set reason [join [lrange [split $text] 2 end]] if {$reason eq ""} { set reason "Please respect the network rules, thank you." } if {![onchan $target $chan]} { if {[string match *@* $target]} { putserv "GLINE $target $duration $reason"  } else {  putserv "GLINE *@$target $duration $reason"  } } else {  putserv "GLINE $target $duration $reason"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Oct 10, 2023 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2023-10-10T05:59:32-04:00</updated>

		<published>2023-10-10T05:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112222#p112222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112222#p112222"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112222#p112222"><![CDATA[
Post the entire code not just parts of it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Oct 10, 2023 5:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yusif]]></name></author>
		<updated>2023-10-10T00:31:02-04:00</updated>

		<published>2023-10-10T00:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112221#p112221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112221#p112221"/>
		<title type="html"><![CDATA[gline not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112221#p112221"><![CDATA[
hi all, looking for help please with this code<br>it should gline user when i type !yes  but it didn't <br><div class="codebox"><p>Code: </p><pre><code>proc ipc:yes {nick host hand chan arg} {    global ipc    if {![info exists ipc($host:waitCall)]} {        return    }    putserv "PRIVMSG $ipc(channel) :Answered for \002YES\002 for [lindex $ipc($host:waitCall) 0]. GLine action applied."       foreach tmr [utimers] {if {[string match -nocase "*ipc:time_elapsed $host*" [join [lindex $tmr 1]]]} {killutimer [lindex $tmr 2]}}    putserv "gline *@[lindex $ipc($host:waitCall) 1] $ipc(gline_time) $ipc(gline_reason)"    unset ipc($host:waitCall)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13021">Yusif</a> — Tue Oct 10, 2023 12:31 am</p><hr />
]]></content>
	</entry>
	</feed>
