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

	<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>2022-10-13T10:28:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-10-13T10:28:37-04:00</updated>

		<published>2022-10-13T10:28:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111464#p111464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111464#p111464"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111464#p111464"><![CDATA[
this seems to do well for me on dalnet<br><div class="codebox"><p>Code: </p><pre><code> ## ircCloudBan v.1.0 ##bind mode - "#% +b" ircCloudBanbind kick - * ircCloudKickproc ircCloudBan {nk uh hn ch md banmask} {  if {![botisop $ch]} return  if {[string match -nocase "*@*irccloud*" $banmask] &amp;&amp; ![regexp {[\`\^\-\_\\\|\}\{\[\]a-zA-Z0-9]{1,}!(\*)@.*irccloud\.com} $banmask] &amp;&amp; ![regexp {[su]id\d+} $banmask] &amp;&amp; ![regexp {id-(\d+).(.*?).irccloud.com} $banmask] &amp;&amp; || ![regexp {(\*)!(\*)@.*[a-zA-Z0-9\-]+\.[a-zA-Z]+\.irccloud\.com} $banmask]} {    set ::irccloudban $banmask    after [expr {1*1000*60}] [list unset ::irccloudban]  }  if {[regexp {[\`\^\-\_\\\|\}\{\[\]a-zA-Z0-9]{1,}!(\*)@.*irccloud\.com} $banmask] || [regexp {[su]id\d+} $banmask] || [regexp {id-(\d+).(.*?).irccloud.com} $banmask] || [regexp {(\*)!(\*)@.*[a-zA-Z0-9\-]+\.[a-zA-Z]+\.irccloud\.com} $banmask]} {    set userList [chanlist $ch]    foreach n $userList {      if {![matchaddr $banmask $n![getchanhost $n $ch]]} { continue }      if {[isop $n $ch] || [ishalfop $n $ch] || [matchattr [nick2hand $n] "fnmo|fnmo" $ch]} { continue }      set chost [getchanhost $n $ch]      regsub -all -- ~ $chost "" chost      set ident  [lindex [split $chost @] 0]      set xbmaskx [string map {sid id uid id} $ident]      set bmask  *!*[string tolower $xbmaskx ]@*      pushmode $ch +b $bmask      pushmode $ch -b $banmask    }  }}proc ircCloudKick {nk uh hn ch target why} {  set chost [getchanhost $target $ch]  if {[info exists ::irccloudban] &amp;&amp; [matchaddr $::irccloudban $target!$chost]} {    if {![botisop $ch]} return    regsub -all -- ~ $chost "" chost    set ident  [lindex [split $chost @] 0]    set xbmaskx [string map {sid id uid id} $ident]    set bmask  *!*[string tolower $xbmaskx ]@*    pushmode $ch +b $bmask    pushmode $ch -b  $::irccloudban    after cancel unset ::irccloudban    unset ::irccloudban  }}putlog "irccloud.tcl Loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Oct 13, 2022 10:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-10-13T06:06:43-04:00</updated>

		<published>2022-10-13T06:06:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111461#p111461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111461#p111461"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111461#p111461"><![CDATA[
in addition :<br><blockquote class="uncited"><div>1) In case of only ban (no kick), it unbans the irccloud ban but DOES NOT set the ident(irccloud id) ban. Where it should be setting an irccloud id / ident ban.</div></blockquote>this can only be done if unique id (UID) is in the set banmask but in many cases it isnt and in many cases irccloud users use the same server without uid in the server vhost like <br><blockquote class="uncited"><div> *!*@uxbridge.irccloud.com or *!*@ilkley.irccloud.com </div></blockquote> <br><br>and so on wich makes it impossible to determine wich ident ban to set thats why the kick proc is used to determine that on kick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Oct 13, 2022 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-10-12T10:09:22-04:00</updated>

		<published>2022-10-12T10:09:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111458#p111458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111458#p111458"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111458#p111458"><![CDATA[
this is how i use it<br><br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% +b" ircCloudBanbind kick - * ircCloudKickproc ircCloudBan {nk uh hn ch md banmask} {   if {![botisop $ch]} return        if {[string match -nocase "*@*irccloud*" $banmask] } {                     set ::irccloudban $banmask                   after [expr {1*1000*60}] [list unset ::irccloudban] }  }proc ircCloudKick {nk uh hn ch target why} { if {![info exists ::irccloudban]} return     if {![botisop $ch]} return         set chost [getchanhost $target $ch]       if {[string match -nocase "*@*irccloud*" $chost] } {          regsub -all -- ~ $chost "" chost        set ident  [lindex [split $chost @] 0]        set xbmaskx [string map {sid id uid id} $ident]        set bmask  *!*[string tolower $xbmaskx ]@*        pushmode $ch +b $bmask        pushmode $ch -b $::irccloudban       unset ::irccloudban  }}</code></pre></div>the only downside is if 2 or more irccloud users get banned at same time the var only stores 1 since its stored under 1 name <br><div class="codebox"><p>Code: </p><pre><code> set ::irccloudban $banmask </code></pre></div><br>i tried using like : <br><div class="codebox"><p>Code: </p><pre><code> set ::irccloudban($chan:$banmask) $banmask </code></pre></div> <br><br>but i couldnt use that in the kick proc since kick proc  doesnt use bans<br><br>other than that it should work fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Oct 12, 2022 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mvp1]]></name></author>
		<updated>2022-10-09T17:41:35-04:00</updated>

		<published>2022-10-09T17:41:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111457#p111457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111457#p111457"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111457#p111457"><![CDATA[
Hi Caesar,<br><br>I'm testing this code, but there seems to be a problem. The code works fine in case of Kick+Ban. However;<br><br>1) In case of only ban (no kick), it unbans the irccloud ban but DOES NOT set the ident(irccloud id) ban. Where it should be setting an irccloud id / ident ban.<br><br>&lt;mvp1&gt; !kb Test1<br>9:49:07 AM •Bot banned *!*@id-387274.lymington.irccloud.com (+b)<br>9:49:08 AM •Bot un-banned *!*@id-387274.lymington.irccloud.com (-b)<br><br>2) In case of only kick (no ban), it sets the ban (cloud id) ban. Where it should not be setting any ban at all.<br><br>← •Test1 (<a href="mailto:uid283599@id-283599.uxbridge.irccloud.com">uid283599@id-283599.uxbridge.irccloud.com</a>) was kicked by •mpv1: Testing please<br>9:31:11 AM •Bot banned *!uid283599@* (+b)<br><br>Any chance you can help edit so the (ip unban + ident ban) only runs in case of ban and kick+ban, but not in case of only kick?<br><br>Many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12960">mvp1</a> — Sun Oct 09, 2022 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-02-28T10:43:08-04:00</updated>

		<published>2019-02-28T10:43:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107482#p107482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107482#p107482"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107482#p107482"><![CDATA[
What's the exact user host of the <em class="text-italics">test</em> user? test-1!<a href="mailto:uid22341@test-67B691C.irccloud.com">uid22341@test-67B691C.irccloud.com</a> ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 28, 2019 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stefano1990]]></name></author>
		<updated>2019-02-13T14:14:34-04:00</updated>

		<published>2019-02-13T14:14:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107447#p107447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107447#p107447"/>
		<title type="html"><![CDATA[Hello]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107447#p107447"><![CDATA[
ceasar hi, this is work only if i !kb nick same nick for the second time not at first time why ?<br><br>frist time <br><br>&lt;@Stefano&gt; !kb  test-1<br> * test-1 was kicked by test (Requested (Stefano))<br>* test sets mode: +b *!*@test-67B691C.irccloud.com<br>* test sets mode: -b *!*@test-67B691C.irccloud.com <br><br>second time<br><br> &lt;@Stefano&gt; !kb test-1<br>* test-1 was kicked by test (Requested (Stefano))<br> * test sets mode: +b *!*@test-67B691C.irccloud.com<br> * test sets mode: -b+b *!*@test-67B691C.irccloud.com *!uid22341@*<br><div class="codebox"><p>Code: </p><pre><code>## ircCloudBan v.0.4 ## set ircSkip {    *.irccloud.com    192.184.9.108    192.184.9.110    192.184.9.112    192.184.10.118    192.184.10.9    192.184.8.73    192.184.8.10    2001:67c:2f08*    2001*67c*2f08* } bind mode - "#% +b" ircCloudBan bind kick - * ircCloudKick proc ircCloudBan {nk uh hn ch md banmask} {    if {![botisop $ch]} return    global ircSkip    set match 0    scan $banmask {%[^!]!%[^@]@%s} n u h    foreach host $ircSkip {       if {![string match -nocase $host $h]} continue       incr match       break    }    if {$match} {       pushmode $ch -b $banmask       if {[regexp {[su]id\d+} $u]} {          pushmode $ch +b "*!$u@*"       } elseif {[regexp {id-(\d+).(.*?).irccloud.com} $h - x]} {          foreach n [chanlist $ch] {             if {[isbotnick $n]} continue             if {[isop $n $ch] || [isvoice $n $ch] || [validuser [nick2hand $n]]} continue             scan [getchanhost $n $ch] {%[^@]@%s} user host             if {[regexp {\d+} $user y]} {                     if {[string equal $x $y]} {                   pushmode $ch +b "*!$user@*"                }             }          }       }       set ::irccloudban $banmask    } } proc ircCloudKick {nk uh hn ch target why} {    if {![info exists ::irccloudban]} return    if {![botisop $ch]} return    set chhost [getchanhost $target $ch]    global ircSkip    set match 0    if {[scan $chhost {%[^@]@%s} u h] != 2} return    foreach host $ircSkip {       if {![string match -nocase $host $h]} continue       incr match       break    }    if {$match} {       if {[regexp {[su]id\d+} $u]} {          pushmode $ch +b "*!$u@*"       }    }    unset ::irccloudban } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12745">Stefano1990</a> — Wed Feb 13, 2019 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2019-01-07T03:02:15-04:00</updated>

		<published>2019-01-07T03:02:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107323#p107323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107323#p107323"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107323#p107323"><![CDATA[
I see that you took this code from the first page in <a href="http://forum.egghelp.org/viewtopic.php?t=20466" class="postlink">irccloud banmask</a> discussion but didn't read until last page to see the offered solution that seems to work for simo. Having trouble to understand what is needed to be changed? Here is the final code with all the changes in place:<div class="codebox"><p>Code: </p><pre><code>## ircCloudBan v.0.4 ##set ircSkip {*.irccloud.com192.184.9.108192.184.9.110192.184.9.112192.184.10.118192.184.10.9192.184.8.73192.184.8.102001:67c:2f08*2001*67c*2f08*}bind mode - "#% +b" ircCloudBanbind kick - * ircCloudKickproc ircCloudBan {nk uh hn ch md banmask} {if {![botisop $ch]} returnglobal ircSkipset match 0scan $banmask {%[^!]!%[^@]@%s} n u hforeach host $ircSkip {if {![string match -nocase $host $h]} continueincr matchbreak}if {$match} {pushmode $ch -b $banmaskif {[regexp {[su]id\d+} $u]} {pushmode $ch +b "*!$u@*"} elseif {[regexp {id-(\d+).(.*?).irccloud.com} $h - x]} {foreach n [chanlist $ch] {if {[isbotnick $n]} continueif {[isop $n $ch] || [isvoice $n $ch] || [validuser [nick2hand $n]]} continuescan [getchanhost $n $ch] {%[^@]@%s} user hostif {[regexp {\d+} $user y]} {     if {[string equal $x $y]} {pushmode $ch +b "*!$user@*"}}}}set ::irccloudban $banmask}}proc ircCloudKick {nk uh hn ch target why} {if {![info exists ::irccloudban]} returnif {![botisop $ch]} returnset chhost [getchanhost $target $ch]global ircSkipset match 0if {[scan $chhost {%[^@]@%s} u h] != 2} returnforeach host $ircSkip {if {![string match -nocase $host $h]} continueincr matchbreak}if {$match} {if {[regexp {[su]id\d+} $u]} {pushmode $ch +b "*!$u@*"}}unset ::irccloudban} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 07, 2019 3:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[F|irT]]></name></author>
		<updated>2018-12-27T00:15:12-04:00</updated>

		<published>2018-12-27T00:15:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=107306#p107306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=107306#p107306"/>
		<title type="html"><![CDATA[cloud ip remove ident ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=107306#p107306"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## ircCloudBan v.0.1 ##bind mode - "#% +b" ircCloudBanproc ircCloudBan {nk uh hn ch md banmask} {if {![botisop $ch]} returnif {![string match -nocase "*.irccloud.com" $banmask]} return        pushmode $ch -b $banmask ;  set ::irccloudban $banmask}bind kick - * ircCloudKickproc ircCloudKick {nk uh hn ch target why} {if {![info exists ::irccloudban]} returnif {[botisop $ch]} {set chhost [getchanhost $target $ch]if {[string match -nocase "*.irccloud.com" $chhost]} {lassign [split $chhost "@"] userpushmode $ch +b "*!$user@*" }}unset ::irccloudban}</code></pre></div>this is what i am using got from this site ... i need some help on it .<br><br>when i ban cloud ip then bots remove the ban . but did not set the ident ban . <br><br>Exp:<br>[09:04] * F|irT sets mode: +b *!*@id-246043.stonehaven.irccloud.com<br>[09:04] * NoNSt0p sets mode: -b *!*@id-246043.stonehaven.irccloud.com<br>[09:09] * F|irT sets mode: +b *!*@id-338795.brockwell.irccloud.com<br>[09:09] * NoNSt0p sets mode: -b *!*@id-338795.brockwell.irccloud.com<br>[09:09] * F|irT sets mode: +b *!*@id-169916.brockwell.irccloud.com<br>[09:09] * NoNSt0p sets mode: -b *!*@id-169916.brockwell.irccloud.com<br><br>but in kick ban it works good <br>exp:<br>[09:11] * F|irT sets mode: +b *!*@id-246043.stonehaven.irccloud.com<br>[09:11] * Day-Night was kicked by F|irT (F|irT)<br>[09:11] * NoNSt0p sets mode: -b+b *!*@id-246043.stonehaven.irccloud.com *!uid246043@*<br><br>--------------------------------------------------------------<br>i want when any op ban the cloud ip it does not remove the ban . <br>of if it can be like remove ip and get ident like it's doing on kick ban . <br>not doing on simple ban.<br><br>hope u underatand.<br><br>My English is weak <br>F|irT<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12521">F|irT</a> — Thu Dec 27, 2018 12:15 am</p><hr />
]]></content>
	</entry>
	</feed>
