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

	<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>2005-08-29T22:50:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-08-29T22:50:20-04:00</updated>

		<published>2005-08-29T22:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55020#p55020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55020#p55020"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55020#p55020"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$helloline == "welcome "} {append helloline $nick to $chan :)}</code></pre></div>output:welcome nickto#chan:)<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Mon Aug 29, 2005 10:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-08-29T15:33:30-04:00</updated>

		<published>2005-08-29T15:33:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55006#p55006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55006#p55006"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55006#p55006"><![CDATA[
dont know about the option shortcuts, maybe you can always shorten them to a unique expression. at least these are not mentioned in the command documentaion, so I rather beleave its something global.<blockquote class="uncited"><div>tcl: evaluate (.tcl): string equal -n a A<br>Tcl: 1<br>tcl: evaluate (.tcl): string mat -n *a* Age<br>Tcl: 1</div></blockquote>if you actually concern about perfomance you really should cache the regexp by using it like:<br><div class="codebox"><p>Code: </p><pre><code>set hellore {(?i)(hai|hello)}...  global hellobib hellore botnick  if {[regexp $hellore $args]} {...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Aug 29, 2005 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-08-29T15:13:12-04:00</updated>

		<published>2005-08-29T15:13:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55004#p55004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55004#p55004"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55004#p55004"><![CDATA[
*Off topic*<br>Subst works with -nob (instead of -nobackslashes) and -noc (instead of -nocommands) duno exactly from what version.<br><br>-nobackslashes or -nob means you won't be able to use any '\' won't be replaced, that means no bold, underline, italic, etc.<br><br>-nocommands or -noc means you won't be able to use commands, example: length of $nick is [llength $nick]<br><br>And about that regexp, if {[regexp -nocase {(hai|hello)} $args]} { # your stuff } should do better than two regexp if you want to use one, if I where you I'd go with a 'string match -nocase' <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=187">caesar</a> — Mon Aug 29, 2005 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-08-28T19:33:28-04:00</updated>

		<published>2005-08-28T19:33:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54979#p54979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54979#p54979"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54979#p54979"><![CDATA[
I beleave he was looking for:<br><br>putserv "PRIVMSG $chan :[subst -nobackslashes -nocommands $helloline]"<br><br>that would enable him to use phrases like<br>"welcome $nick in our channel $chan. enjoy your stay!"<br>without modify the whole script but just the list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Aug 28, 2005 7:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-28T00:12:17-04:00</updated>

		<published>2005-08-28T00:12:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54941#p54941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54941#p54941"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54941#p54941"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set hellobib {{hi too =)}{yups what's up}{hmm..}{yoi..}{hi..}{hi there}{alo!}{oi}{aw aw}{hoayem}{welcome }}bind pubm - "*" pub_haiiproc pub_haii {nick uhost hand chan args} {global hellobib botnick if {[regexp -nocase "hai" $args] || [regexp -nocase "hello" $args]} {   set helloline [lindex $hellobib [rand [llength $hellobib]]]   if {$helloline == "welcome "} {append helloline $nick}   putserv "PRIVMSG $chan :$helloline"   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Aug 28, 2005 12:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-08-27T22:46:11-04:00</updated>

		<published>2005-08-27T22:46:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54936#p54936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54936#p54936"/>
		<title type="html"><![CDATA[how to set $nick into variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54936#p54936"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set hellobib {{hi too =)}{yups what's up}{hmm..}{yoi..}{hi..}{hi there}{alo!}{oi}{aw aw}{hoayem}{welcome $nick}}bind pubm - "*" pub_haiiproc pub_haii {nick uhost hand chan args} {global hellobib botnick if {[regexp -nocase "hai" $args] || [regexp -nocase "hello" $args] &gt; 0} { set helloline [lindex $hellobib [rand [llength $hellobib]]]putserv "PRIVMSG $chan :$helloline"} </code></pre></div>how to take the $nick into $hellobib, when somebody spoken in channel.<br>the bot always saying: welcome $nick, not welcome "somebody nick"<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Sat Aug 27, 2005 10:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
