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

	<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>2008-03-12T05:40:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Puck]]></name></author>
		<updated>2008-03-12T05:40:35-04:00</updated>

		<published>2008-03-12T05:40:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81636#p81636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81636#p81636"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81636#p81636"><![CDATA[
Thank you Very Much. It works fine (:<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9764">Puck</a> — Wed Mar 12, 2008 5:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-10T12:38:10-04:00</updated>

		<published>2008-03-10T12:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81605#p81605</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81605#p81605"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81605#p81605"><![CDATA[
Try wordwrap<div class="codebox"><p>Code: </p><pre><code>proc show:chaninfo {nick uhost hand chan arg} { foreach info [wordwrap [join [channel info $chan]] 100] {  puthelp "privmsg $chan :$info" }}# user's wordwrap procproc wordwrap {str {len 70} {splitChr { }}} { set out [set cur {}]; set i 0 foreach word [split [set str][unset str] $splitChr] {  if {[incr i [string len $word]]&gt;$len} {   lappend out [join $cur $splitChr]   set cur [list $word]   set i [string len $word]  } {   lappend cur $word  }  incr i } lappend out [join $cur $splitChr]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Mar 10, 2008 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-03-10T07:04:25-04:00</updated>

		<published>2008-03-10T07:04:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81598#p81598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81598#p81598"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81598#p81598"><![CDATA[
Could try something like this, prints 4 settings on each line:<div class="codebox"><p>Code: </p><pre><code>bind pub - .chaninfo show:chaninfoproc show:chaninfo {nick uhost hand chan arg} { foreach [list "info1" "info2" "info3" "info4"] [channel info $chan] {  puthelp "privmsg $chan :$info1, $info2, $info3, $info4" }}</code></pre></div>One cosmetic issue is that it might print excessive commas (,) on the last line depending on the number of settings.<br>Labels for <em class="text-italics">string</em> and <em class="text-italics">integer</em> settings would have to be hardcoded however, as there is no mechanism to retrieve these easily through tcl-scripting.<br><br>Another way that might work more like you requested:<div class="codebox"><p>Code: </p><pre><code>bind pub - .chaninfo show:chaninfoproc show:chaninfo {nick uhost hand chan arg} { puthelp "PRIVMSG $chan :[join [channel info $chan] ", "]"}</code></pre></div>Keep in mind that the whole string of settings may become quite long, and need to be split over several lines through some cleaver mechanics.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Mar 10, 2008 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Puck]]></name></author>
		<updated>2008-03-10T03:26:28-04:00</updated>

		<published>2008-03-10T03:26:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81597#p81597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81597#p81597"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81597#p81597"><![CDATA[
Thank you for your reply Sir_Fz. The code works rather funny, the bot starts with the settings and pasts one on each line :<br><blockquote class="uncited"><div>[08:19] (@Akos0): +stn<br>[08:19] (@Akos0): 0<br>[08:19] (@Akos0): 0<br>[08:19] (@Akos0): 0<br>[08:20] (@Akos0): 10:2<br>[08:20] (@Akos0): 3:1<br>[08:20] (@Akos0): 5:3<br>[08:20] (@Akos0): 0:0<br>[08:20] (@Akos0): 3:1<br>[08:20] (@Akos0): 0:0<br>[08:20] (@Akos0): 5:30<br>[08:20] (@Akos0): 0<br>[08:20] (@Akos0): 60<br>[08:20] (@Akos0): 60<br>[08:20] (@Akos0): -enforcebans<br>[08:20] (@Akos0): +dynamicbans<br>[08:20] (@Akos0): +userbans<br>[08:20] (@Akos0): -autoop<br>[08:20] (@Akos0): -autohalfop<br>[08:20] (@Akos0): -bitch<br>[08:21] (@Akos0): +greet<br>[08:21] (@Akos0): +protectops<br>[08:21] (@Akos0): -protecthalfops<br>[08:21] (@Akos0): -protectfriends<br>[08:21] (@Akos0): +dontkickops<br>[08:21] (@Akos0): -inactive<br>[08:21] (@Akos0): +statuslog<br>[08:21] (@Akos0): -revenge<br>[08:21] (@Akos0): -revengebot<br>[08:21] (@Akos0): -secret<br>[08:21] (@Akos0): +shared<br>[08:21] (@Akos0): -autovoice<br>[08:21] (@Akos0): +cycle<br>[08:21] (@Akos0): -seen<br>[08:21] (@Akos0): +dynamicexempts<br>[08:21] (@Akos0): +userexempts<br>[08:21] (@Akos0): +dynamicinvites<br>[08:21] (@Akos0): +userinvites<br>[08:21] (@Akos0): -nodesynch<br>[08:21] (@Akos0): ap:level 100<br>[08:22] (@Akos0): ap:textl {5:1 60 k:kb 2}</div></blockquote>And only  at the end it pasts the allprotection`s settings, but this way the bot gets lagged, isnt there a way too make the bot paste the settings in 3 or 4 lines, one after the other, like this :<br><blockquote class="uncited"><div> ap:level 100, ap:textl {5:1 60 k:kb 2},  ap:textc {215:3 120 kb 2}, ap:notcl {2:1 120 kb 2}, ap:notcc {200:3 180 kb 2}, ap:caps {75:90 120 kb 2}, ap:repeatl {3:10 60 k:kb 2}</div></blockquote>And so on  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9764">Puck</a> — Mon Mar 10, 2008 3:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-09T18:37:08-04:00</updated>

		<published>2008-03-09T18:37:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81573#p81573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81573#p81573"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81573#p81573"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - .chaninfo show:chaninfoproc show:chaninfo {nick uhost hand chan arg} { foreach info [channel info $chan] {  puthelp "privmsg $chan :$info" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Mar 09, 2008 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Puck]]></name></author>
		<updated>2008-03-12T05:40:52-04:00</updated>

		<published>2008-03-09T18:20:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81571#p81571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81571#p81571"/>
		<title type="html"><![CDATA[!Chaninfo channel request [Solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81571#p81571"><![CDATA[
Hi everyone.<br><br>I searched the website, the archives and the forum, but i didnt manage too find a script that basicly does the following thing:<br><br>If i type .chaninfo in the channel the bot replies the channel settings in a pub message or notice, and i`d like this kind of script so that other channel owners can see theire channel settings without connecting too the partyline, and they, if its possible, can choose so that the reply comes in a notice or a pub message on the channel, and only +m +n or +o can benefit with this command, and if the user doesnt have these flags it replies them with "Sorry, access denied." Also another feature would be good, if the bot wouldnt selfflood its self, since im using allprotection.tcl, and it has a lot of settings in the chaninfo area (as you all know the script), so if it would be possible that after 150 chars it would do another line.<br><br>I`m very new in the TCL, looked thruw the forum and found lots of great scripts and used them, i juse want this script too give more freedom too the channel owners who use my egg.<br><br>Thank you in advance for the help.<br><br>P.S. : I didnt find a good avatar with a woman and here are the blushing and crying smilies :  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>(This is the way too post a request right ?  <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=9764">Puck</a> — Sun Mar 09, 2008 6:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
