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

	<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>2010-01-17T16:20:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-17T16:20:17-04:00</updated>

		<published>2010-01-17T16:20:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91712#p91712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91712#p91712"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91712#p91712"><![CDATA[
lol me too <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=8130">TCL_no_TK</a> — Sun Jan 17, 2010 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2010-01-17T15:59:48-04:00</updated>

		<published>2010-01-17T15:59:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91711#p91711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91711#p91711"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91711#p91711"><![CDATA[
Aha <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> Thanks As Always, glad we got there eventually  <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=10803">Sbarkeri</a> — Sun Jan 17, 2010 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-17T14:52:34-04:00</updated>

		<published>2010-01-17T14:52:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91710#p91710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91710#p91710"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91710#p91710"><![CDATA[
Not at all, dont think my brain works as well with old age now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> i've edited my last post anyway, hopefully this should do the trick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> if not you can always post again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Jan 17, 2010 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2010-01-17T13:10:40-04:00</updated>

		<published>2010-01-17T13:10:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91709#p91709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91709#p91709"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91709#p91709"><![CDATA[
Sorry to sound so fussy however this is still going to send the message to the channel the user types the bind in as the pushmode and pushhelp and being sent to the $chan which as we all know is set to whatever channel the bind was originally posted in. Here is what I wanted to happen:<br><div class="codebox"><p>Code: </p><pre><code>User Types "!uac" or "!uac NICK" in #clanbase.crew.cod4 or #clanbase.crew.mw2If channel = #clanbase.crew.cod4 ThenSend PRIVMSG (*NOTICE* BLAH BLAH) to #clanbase.cod4If bind "!uac" has a NICK Then Send PRIVMSG (*NOTICE FOR NICK* BLAH BLAH)If channel = #clanbase.crew.mw2 ThenSend PRIVMSG to #clanbase.mw2If bind "!uac" has a NICK Then Send PRIVMSG (*NOTICE FOR NICK* BLAH BLAH)</code></pre></div>Hope that kind of made it a little clearer, sorry for any inconveinience!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10803">Sbarkeri</a> — Sun Jan 17, 2010 1:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-17T14:51:02-04:00</updated>

		<published>2010-01-17T10:53:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91705#p91705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91705#p91705"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91705#p91705"><![CDATA[
Understood <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> *after next post* probably :/<div class="codebox"><p>Code: </p><pre><code> bind pub -|- !uac pub:uac proc pub:uac {nick host hand chan text} {  set c [lindex [split [string tolower $chan] #] 1]  if {([regexp -- {^(clanbase.crew.mw2|clanbase.crew.cod4|clanbase.mw2|clanbase.cod4)$} "$c"])&amp;&amp;([llength $text] == 0)} {   if {[string match "*.cod4" "$c"]} {    set dest "#clanbase.cod4"   } else {    set dest "#clanbase.mw2"   }   putserv "MODE $dest -c"   putserv "PRIVMSG $dest :** NOTICE ** The gamecrew can only provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."   putserv "MODE $dest +c"   } elseif {([regexp -- {^(clanbase.crew.mw2|clanbase.crew.cod4)$} "$c"])&amp;&amp;([llength $text] &gt; 0)} {    set targets [lrange [split $text] 0 end]    if {[string match "*.crew.cod4" "$c"]} {     set dest "#clanbase.cod4"    } else {     set dest "#clanbase.mw2"    }     putserv "MODE $dest -c"     putserv "PRIVMSG $dest :** NOTICE FOR $targets ** The gamecrew can only provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."     putserv "MODE $dest +c"   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Jan 17, 2010 10:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2010-01-16T22:53:57-04:00</updated>

		<published>2010-01-16T22:53:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91703#p91703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91703#p91703"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91703#p91703"><![CDATA[
Thanks but I kind of think you misunderstood my problem a little. What your script will do is respond to the !uac command when it is said in any of the 4 channels however what I want it to do is for an admin to say "!uac" or "!uac nick" in of the #xxx.crew channels and for the message to display in the standard channel. For example I will say "!uac Test" in #clanbase.crew.cod4 and in #clanbase.cod4 the message "**Notice for Test** Blah Blah" will appear. My script that I posted in the first post already does this for one pair of channels however I would like to work for the other pair too. So that the messages will appear in like so<br><br><strong class="text-strong">!uac Sent Here</strong>         ---&gt; <strong class="text-strong">Notice Displayed Here</strong><br>#Clanbase.crew.mw2          ---&gt; #clanbase.mw2<br>#Clanbase.crew.cod4          ---&gt; #clanbase.cod4<br><br><br>Cheers[/b]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10803">Sbarkeri</a> — Sat Jan 16, 2010 10:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-14T04:11:56-04:00</updated>

		<published>2010-01-14T04:11:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91675#p91675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91675#p91675"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91675#p91675"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> set uac_chans "#clanbase.mw2 #clanbase.cod4 #clanbase.crew.cod4" bind pub -|- !uac pub:uac proc pub:uac {nick host hand chan text} {  global uac_chans  if {[lsearch "$uac_chans" "$chan"] == -1} {   return 0  }  if {[llength $text] == 0} {   pushmode $chan -c   puthelp "PRIVMSG $chan :** NOTICE ** The gamecrew can provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."   pushmode $chan +c  } else {   set target [lindex [split $text] 0]   pushmode $chan -c   puthelp "PRIVMSG $chan :** NOTICE FOR $target ** The gamecrew can only provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."   pushmode $chan +c  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jan 14, 2010 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sbarkeri]]></name></author>
		<updated>2010-01-12T16:12:24-04:00</updated>

		<published>2010-01-12T16:12:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91664#p91664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91664#p91664"/>
		<title type="html"><![CDATA[Making a script work in 2 channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91664#p91664"><![CDATA[
Hi, I have the following script and it works fine however I would like to edit it so that it works in another channel<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !uac pub:uacproc pub:uac {nick host hand chan text} {  if {![string match [string tolower $chan] "#clanbase.crew.mw2"]} {   return 0  }  if {[llength $text] == 0} {   putserv "MODE #clanbase.mw2 -c"   putserv "PRIVMSG #clanbase.mw2 :** NOTICE ** The gamecrew can provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."   putserv "MODE #clanbase.mw2 +c"  } else {   set target [lindex [split $text] 0]   putserv "MODE #clanbase.mw2 -c"   putserv "PRIVMSG #clanbase.mw2 :** NOTICE FOR $target ** The gamecrew can only provide limited support for UAC2, if you are having problems please visit: http://uac2.com/forums/ and wait for a UAC2 admin to respond to your issue."   putserv "MODE #clanbase.mw2 +c"  }}</code></pre></div>You will notice that this script sends a message to the client channel (#clanbase.mw2) then someone in the admin channel (#clanbase.crew.m2) says !uac UserName. However I would like to extend this script so that it also works in #clanbase.cod4 and #clanbase.crew.cod4, I want it to have the same message etc. however just to extend it to work in both channels.<br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10803">Sbarkeri</a> — Tue Jan 12, 2010 4:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
