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

	<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-07-16T20:37:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T20:37:57-04:00</updated>

		<published>2005-07-16T20:37:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52662#p52662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52662#p52662"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52662#p52662"><![CDATA[
assuming your staff channel is called #room:<div class="codebox"><p>Code: </p><pre><code>set staff #roomset online 0bind pubm - * fooproc foo {n u h c t} {   set cmd [lindex [split $t] 0]   switch -- $cmd {   "!help" {      if $::online {         puthelp "privmsg $n :hold on $n, someone will be with you shortly"         puthelp "privmsg $::room :$n needs help on $c (msg: [join [lrange [split $t] 1 e]])"      } {         puthelp "privmsg $n :sorry $n, we're currently busy, please try again later"      }   }   "!online" {if {$c == $::staff} {set ::online 1}}    "!offline" {if {$c == $::staff} {set ::online 0}}   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 8:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidIce]]></name></author>
		<updated>2005-07-16T18:18:41-04:00</updated>

		<published>2005-07-16T18:18:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52661#p52661</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52661#p52661"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52661#p52661"><![CDATA[
It shows blahnick needs help in room.  but in the staff room you cant do !online or !offline doesnt work or get any error. What can i do to get the help:proc  to work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4380">LiquidIce</a> — Sat Jul 16, 2005 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T17:39:08-04:00</updated>

		<published>2005-07-16T17:39:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52657#p52657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52657#p52657"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52657#p52657"><![CDATA[
apparently your help:proc doesn't work either<br><br>substitute set $nick and unset $nick with unset nick, but that will fix syntax errors only, I doubt the script will be functional at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidIce]]></name></author>
		<updated>2005-07-16T16:59:07-04:00</updated>

		<published>2005-07-16T16:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52654#p52654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52654#p52654"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52654#p52654"><![CDATA[
!online or offline command doesnt work<br><br>but when i do !help blah blah i get this error<br><br>Tcl error [help:proc]: can't read "LiquidIce": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4380">LiquidIce</a> — Sat Jul 16, 2005 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-16T16:34:00-04:00</updated>

		<published>2005-07-16T16:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52651#p52651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52651#p52651"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52651#p52651"><![CDATA[
substitute [info exists $nick_to_help] with [info exists nick_to_help]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 16, 2005 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LiquidIce]]></name></author>
		<updated>2005-07-16T16:13:33-04:00</updated>

		<published>2005-07-16T16:13:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52646#p52646</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52646#p52646"/>
		<title type="html"><![CDATA[helproom]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52646#p52646"><![CDATA[
Heres the script i need help with.<br>error i get when i do !online or !offline is <br>Tcl error [online:proc]: can't read "nick_to_help": no such variable<br><br>Code:<br>#helproom.tcl<br>set room1 "#room"<br>set room2 "#room.staff"<br><br>bind pub - !help help:proc<br>bind pub - !offline offline:proc<br>bind pub - !online online:proc<br><br><br>proc help:proc {nick uhost hand chan text} { <br> global room1 room2 nick_to_help <br>  if {[string equal -nocase $chan $room1] &amp;&amp; ![info exists nick_to_help]} { <br>   putserv "PRIVMSG $room2 :\002NOTE\002: \002$nick\002 need's help in \002$room1\002. (Message: \002[lrange $text 0 end]\002)" <br>   set $nick  <br>   } <br>} <br><br>proc online:proc {nick uhost hand chan text} { <br> global room1 room2 nick_to_help <br>  if {[string equal -nocase $chan $room2] &amp;&amp; [isop $nick $room2] &amp;&amp; [info exists $nick_to_help]} { <br>   putserv "PRIVMSG $room1 :\002$nick_to_help\002, please be *patient*. An \002op\002 will be with you in just a \002minute\002." <br>   unset $nick <br>   } <br>} <br><br>proc offline:proc {nick uhost hand chan text} { <br> global room1 room2 nick_to_help <br>  if {[string equal -nocase $chan $room2] &amp;&amp; [isop $nick $room2] &amp;&amp; [info exists $nick_to_help]} { <br>   putserv "PRIVMSG $room1 :\002$nick_to_help\002, please try back again *later*. There are \002no ops\002 currently to assist you at the \002moment\002." <br>   unset $nick  <br>   } <br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4380">LiquidIce</a> — Sat Jul 16, 2005 4:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
