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

	<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>2012-01-03T13:46:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Smartiees]]></name></author>
		<updated>2012-01-03T13:46:42-04:00</updated>

		<published>2012-01-03T13:46:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98452#p98452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98452#p98452"/>
		<title type="html"><![CDATA[help regarding a code tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98452#p98452"><![CDATA[
where is all gone? why not helping out??? my problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9550">Smartiees</a> — Tue Jan 03, 2012 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Smartiees]]></name></author>
		<updated>2011-11-22T22:28:24-04:00</updated>

		<published>2011-11-22T22:28:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98238#p98238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98238#p98238"/>
		<title type="html"><![CDATA[help regarding a code tcl.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98238#p98238"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## ad.tcl v1.0 by strikelight  ([sL]@EfNet)## -----------------------------------------# web  : http://www.TCLScript.com# EFNet: #Scripting# -----------------------------------------# Description:## Small script used to advertise urls in a channel# such as shell companies at a defined time interval.## Default usage:## Add:# /msg &lt;bot&gt; !ad &lt;url&gt; &lt;description&gt;## Remove:# /msg &lt;bot&gt; !delad &lt;url&gt;##### ---  START EDITTING HERE --- ### time in seconds to display an ad to channels #set adtime 120# channels to advertise in #set adchans "#gilgit"# flag of user required to add an advertisement via msg #set adflag m# message trigger used to add an advertisement ## (format /msg bot &lt;command&gt; &lt;url&gt; &lt;ad description&gt;)set admsgcmd "!ad"# message trigger used to delete an advertisement ## (format /msg bot &lt;command&gt; &lt;url&gt;)set deladmsgcmd "!delad"## ---  STOP EDITTING HERE --- ##set adidx 0proc loadads {} {  global adlist  set adlist ""  if {![file exists "ad.txt"]} {return 0}  set infile [open "ad.txt" r]  while {![eof $infile]} {    gets $infile dataline    if {$dataline != ""} {lappend adlist $dataline}  }  close $infile  return 1}proc saveads {} {  global adlist  set outfile [open "ad.txt" w]  foreach ad $adlist {if {$ad != ""} {puts $outfile "$ad"}}  close $outfile  return 1}proc addisplay {} {  global adchans adlist adidx adtime  utimer $adtime "addisplay"  if {$adlist == ""} {return 0}  foreach chan $adchans {    puthelp "PRIVMSG $chan :\002\037[split [lindex [lindex $adlist $adidx] 0]]\037\002"    puthelp "PRIVMSG $chan :10[split [lrange [lindex $adlist $adidx] 1 end]]"  }  set adidx [expr $adidx + 1]  if {$adidx &gt;= [llength $adlist]} {set adidx 0}  return 1}proc utimerexists {timer_proc} {  foreach j [utimers] {if {[string compare [lindex $j 1] $timer_proc] == 0} {return [lindex $j 2]}}  return}bind msg $adflag $admsgcmd addadproc addad {unick user handle argz} {  global adlist botnick admsgcmd  set url [split [lindex $argz 0]]  set addesc [split [lrange $argz 1 end]]  if {($url == "") || ($addesc == "")} {    puthelp "PRIVMSG $unick :Invalid. Format: /msg $botnick $admsgcmd &lt;url&gt; &lt;ad description&gt;"    return 0  }  foreach turl $adlist {    set aurl [string tolower [lindex $turl 0]]    if {$aurl == [string tolower $url]} {      puthelp "PRIVMSG $unick :Error. Site is already added."      return 0    }  }  lappend adlist "$url $addesc"  saveads  puthelp "PRIVMSG $unick :Added: $url - $addesc"  return 1}bind msg $adflag $deladmsgcmd deladproc delad {unick user handle argz} {  global adlist botnick admsgcmd  set url [split [lindex $argz 0]]  if {$url == ""} {    puthelp "PRIVMSG $unick :Invalid. Format: /msg $botnick $deladmsgcmd &lt;url&gt;"    return 0  }  set newadlist ""  foreach turl $adlist {    set aurl [string tolower [lindex $turl 0]]    if {$aurl != [string tolower $url]} {     lappend newadlist $turl    }  }  set adlist $newadlist  saveads  puthelp "PRIVMSG $unick :Deleted: $url"  return 1}loadadsif {[utimerexists "addisplay"] == ""} {utimer $adtime "addisplay"}putlog "ad.tcl v1.0 by strikelight now loaded"</code></pre></div>I am using this above tcl for some matter<br><br>this tcl show msgs which in in added into ad.txt line by line after some minute the problem is this if some txt length is more then then its cut off the txt sentence and show shortly<br><br>i want its when it show msg if some txt lenght is big then its convert into two msgs automaticly and show completely lenght.<br><br>like i show you here example:<br><br>right now tcl show like this short msg:<div class="codebox"><p>Code: </p><pre><code>(23:07:25) &lt;Deen&gt;  255. Allah - there is no deity except Him, the Ever-Living, the Sustainer of [all] existence. Neither drowsiness overtakes Him nor sleep. To Him belongs whatever is in the heavens and whatever is on the earth. Who is it that can intercede with Him except by His permission? He knows what is [presently] before them and what will be after them, and they encompass not a thing of </code></pre></div>I want to say what i put in this tcl in code then this tcl show complete msg into two msgs like this i show you here example:<br><div class="codebox"><p>Code: </p><pre><code>(23:07:25) &lt;Deen&gt;  255. Allah - there is no deity except Him, the Ever-Living, the Sustainer of [all] existence. Neither drowsiness overtakes Him nor sleep. To Him belongs whatever is in the heavens and whatever is on the earth. Who is it that can intercede with Him except by His permission? He knows what is [presently] before them and what will be after them, and they encompass not a thing of (23:07:25) &lt;Deen&gt;  His knowledge except for what He wills. His Kursi extends over the heavens and the earth, and their preservation tires Him not. And He is the Most High, the Most Great. </code></pre></div>like this how it will make it???? please help me out and tell me what should i put in this tcl then it will show complete message into two or three msgs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9550">Smartiees</a> — Tue Nov 22, 2011 10:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
