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

	<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>2024-10-07T10:09:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-10-07T10:09:13-04:00</updated>

		<published>2024-10-07T10:09:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113062#p113062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113062#p113062"/>
		<title type="html"><![CDATA[Re: split large lines into multiple for easier reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113062#p113062"><![CDATA[
thanks CrazyCat , i tried it like this and it seems to work but im not sure if its proper i kinda followed the suggestion on the link you provided.<br><div class="codebox"><p>Code: </p><pre><code>             set banmask "[lindex [split $uhost "@"] 1]"                if {[regexp -nocase {\.5\.IP|\.59\.IP|\.39\.IP|\.49\.IP|\.101\.IP|\.103\.IP|\.110\.IP|\.111\.IP|\.116\.IP|\.154\.IP|\.158\.IP|\.167\.IP|\.182\.IP|\.202\.IP|\.223\.IP|\.PK|\.virginm\.net|contaboserver\.net|alshamil\.net\.ae|shawcable\.net|cable\.virginm\.net|cable\.rogers\.com|                \.2\.ip|\.37\.ip|\.812\.ip|\.39\.ip|\.46\.ip|\.51\.ip|\.59\.ip|\.72\.ip|\.116\.ip|\.117\.ip|\.119\.ip|\.124\.ip|\.173\.ip|\.139\.ip|\.195\.ip|\.203\.ip|\.212\.ip|\.175\.ip|\.185\.ip|\.202\.ip|\.213\.ip|\.verizon.net|\.comcast.net|\.38|\.ca|\.ae$} $banmask]} {                     if {![ischanban $banmask $chan]} {  set bmask *!*@$banmask }                    } else { set bmask "*!*@[lindex [split $ZbanmaskQ "."] 0].[join [lrange [split $banmask .] 1 end] .]" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Oct 07, 2024 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-10-07T09:38:08-04:00</updated>

		<published>2024-10-07T09:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113060#p113060</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113060#p113060"/>
		<title type="html"><![CDATA[Re: split large lines into multiple for easier reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113060#p113060"><![CDATA[
Oh, I didn't  underdstand you mean "wrapping" your code.<br>Splitting a regexp is a bad idea as you don't know how cr/lf could be interpreted, but you can have a look on <a href="https://stackoverflow.com/questions/63645106/tcl-split-regex-over-multiple-lines" class="postlink">https://stackoverflow.com/questions/636 ... iple-lines</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 07, 2024 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-10-07T09:27:26-04:00</updated>

		<published>2024-10-07T09:27:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113059#p113059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113059#p113059"/>
		<title type="html"><![CDATA[Re: split large lines into multiple for easier reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113059#p113059"><![CDATA[
the line i just posted is an example of a long line of code id like to split in 2 or 3 lines<br><br>i tried like this but not sure if its proper :<br><div class="codebox"><p>Code: </p><pre><code>                 if {[regexp -nocase {\.5\.IP|\.59\.IP|\.39\.IP|\.49\.IP|\.101\.IP|\.103\.IP|\.110\.IP|\.111\.IP|\.116\.IP|\.154\.IP|\.158\.IP|\.167\.IP|\.182\.IP|\.202\.IP|\.223\.IP|\.PK|\.virginm\.net|contaboserver\.net|alshamil\.net\.ae|shawcable\.net|cable\.virginm\.net|cable\.rogers\.com &amp;&amp;                \.2\.ip|\.5\.ip|\.37\.ip|\.39\.ip|\.46\.ip|\.49\.ip|\.51\.ip|\.59\.ip|\.72\.ip|\.101\.ip|\.103\.ip|\.110\.ip|\.111\.ip|\.116\.ip|\.117\.ip|\.119\.ip|\.124\.ip|\.173\.ip|\.139\.ip|\.195\.ip|\.203\.ip|\.212\.ip|\.154\.ip|\.158\.ip|\.167\.ip|\.175\.ip|\.182\.ip|\.185\.ip|\.202\.ip|\.213\.ip|\.223\.ip|\.verizon.net|\.comcast.net|\.38\.ip|\.ca|\.ae$} $host]} {                     if {![ischanban $host $chan]} {  set bmask $host }                    </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Oct 07, 2024 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-10-07T08:56:42-04:00</updated>

		<published>2024-10-07T08:56:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113058#p113058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113058#p113058"/>
		<title type="html"><![CDATA[Re: split large lines into multiple for easier reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113058#p113058"><![CDATA[
Can you post an example of line you want to split ?<br>And your regexp is... weird.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 07, 2024 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-10-07T07:19:30-04:00</updated>

		<published>2024-10-07T07:19:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113057#p113057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113057#p113057"/>
		<title type="html"><![CDATA[split large lines into multiple for easier reading]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113057#p113057"><![CDATA[
greetings ,<br><br>how would we split large lines line this into multiple to make it easier to read ?<br><div class="codebox"><p>Code: </p><pre><code>if {[regexp -nocase {\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|\.ip|$} $host]} { do stuff }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Oct 07, 2024 7:19 am</p><hr />
]]></content>
	</entry>
	</feed>
