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

	<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-10-11T13:27:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-10-11T13:27:40-04:00</updated>

		<published>2008-10-11T13:27:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85506#p85506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85506#p85506"/>
		<title type="html"><![CDATA[Increase length of infoline (greet)?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85506#p85506"><![CDATA[
I haven't been able to look over the eggdrop source code recently to check for a way to "change" the info line lenght, so i wrote a quick solution. The only testing i've done thou, is to see if XTRA user fields would allow alot of chars and since i got up to 105 chars. I thought it would work, so please let me know how it goes. <div class="codebox"><p>Code: </p><pre><code>if {![info exists whois-fields]} { set whois-fields "GREET"} elseif {(![regexp -- {(GREET)} "$whois-fields"])} { append whois-fields " GREET"}bind dcc -|- +greet add_greet:dccbind dcc -|- -greet del_greet:dccbind dcc m|- chgreet chg_greet:dccproc add_greet {handle idx text} { if {([llength $text] == 0)} {putdcc $idx "Usage: +greet &lt;greet-line&gt;"; return 1}  set index 0; set end "end"; set newgreet [join [lrange $text $index $end]]; set oldgreet [getuser $handle XTRA GREET]   if {([llength $oldgreet] == "") &amp;&amp; ([string match -nocase "none" "$newgreet"])} {putdcc $idx "No greet has been set."; return 1}   elseif {([llength $oldgreet] != "") &amp;&amp; ([string match -nocase "none" "$newgreet"])} {setuser $handle XTRA GREET ""; putdcc $idx "Your info line has been cleared."; return 1}   elseif {([llength $oldgreet] == "") &amp;&amp; (![string match -nocase "none" "$newgreet"])} {setuser $handle XTRA GREET "$newgreet"; putdcc $idx "Your info line has been set to: $newgreet"; return 1}   elseif {([llength $oldgreet] != "") &amp;&amp; (![string match -nocase "none" "$newgreet"])} {setuser $handle XTRA GREET "$newgreet"; putdcc $idx "You info line has been changed to: $newgreet"; return 1}}proc del_greet {handle idx text} { set oldgreet [getuser $handle XTRA GREET]  if {([llength $oldgreet] == "")} {putdcc $idx "No greet is currently set."; return 1}  else {setuser $handle XTRA GREET ""; putdcc $idx "Your info line has been cleared"; return 1}}proc chg_greet {handle idx text} { if {([llength $text] == 0)} {putdcc $idx "Usage: chgreet &lt;handle&gt; \[new greet-line\]"; return 1} set index 0; set end "end" set hand [lindex $text $index]  if {(![validuser $hand])} {putdcc $idx "sorry, i dont know $hand"; return 1}  else {   set index [expr $index +1]   set newgreet [join [lrange $text $index $end]]    if {([llength $newgreet] == "")} {putdcc $idx "Usage: chgreet &lt;handle&gt; \[new greet-line\]"; return 1}    if {([string match -nocase "none" "$newgreet"])} {setuser $hand XTRA GREET ""; putdcc $idx "info line for $hand has been cleared."; return 1}    else {setuser $hand XTRA GREET "$newgreet"; putdcc $idx "info line for $hand has been set to: $newgreet"; return 1}  }}bind join -|- "* *" greet:joinproc greet:join {nick host handle channel} { if {(![isbotnick $nick]) &amp;&amp; ([validuser $handle]) &amp;&amp; ([validchan $channel]) &amp;&amp; ([channel get $channel greet] == "+") &amp;&amp; ([getuser $handle XTRA GREET] != "")} {  puthelp "PRIVMSG $channel :\[$nick\] [getuser $handle XTRA GREET]"  return }}</code></pre></div> Once its loaded, just use <blockquote class="uncited"><div>.+greet &lt;new greet line&gt;        - to set your self a greet line.<br>.-greet                         - to unset your self a greet line.<br>.chgreet &lt;handle&gt; &lt;greet line&gt;  - to set someone else's greet line.<br><br>You can use the word 'none' as a greet line to remove (clear) a greet line.<br>It will be global, so any channel that has '+greet' channel option set it will display<br>a person's greet if they have one when they join the channel. This will currently happen "every" time<br>they join the channel.</div></blockquote> Good luck  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sat Oct 11, 2008 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Hellcat]]></name></author>
		<updated>2008-10-01T08:23:21-04:00</updated>

		<published>2008-10-01T08:23:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85357#p85357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85357#p85357"/>
		<title type="html"><![CDATA[Increase length of infoline (greet)?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85357#p85357"><![CDATA[
Hello everyone <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I finally started setting up (my very first ever) EggDrop BOT....<br>So far it looks working pretty nicely like what I wanted to have <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Now comes the "but" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>I also enabled +greet on my channel and users known to the bot that have an infoline trigger the greet, all look fine.<br>But the greet messages are cut off after 93 chars. They are already saved cut off in the user file.<br><br>What do I have to do to increase the max. length of the greet messages / info lines?<br><br><br>Thanx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10241">Hellcat</a> — Wed Oct 01, 2008 8:23 am</p><hr />
]]></content>
	</entry>
	</feed>
