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

	<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>2003-05-11T15:17:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-11T15:17:52-04:00</updated>

		<published>2003-05-11T15:17:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20071#p20071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20071#p20071"/>
		<title type="html"><![CDATA[Problem with [ % ] when changing topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20071#p20071"><![CDATA[
it isn't mine.<br>it's a modified version of ophelper that i found in google. i am only tring to fix some bugs and ajust something.<br>i'll change the topic for "$arg" and i 'll use [join [lrange [split $arg] 0 end]] for the kick and kickban. thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Sun May 11, 2003 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-11T14:52:06-04:00</updated>

		<published>2003-05-11T14:52:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20070#p20070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20070#p20070"/>
		<title type="html"><![CDATA[Problem with [ % ] when changing topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20070#p20070"><![CDATA[
This is because you are using list commands on strings.<br><br>The correct usage is<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "[char]topic" pub_topic proc pub_topic {user uhost hand chan arg} { set topic [join [lrange [split $arg] 0 end]]putserv "TOPIC $chan :$topic" putlog "$chan: Changing topic too \"$topic\" by request of $user\[$hand\]" }</code></pre></div>However, notice you are using an index of 0 to end in the lrange. Why?<br><br>You might as well skip that, and use<br><div class="codebox"><p>Code: </p><pre><code>set topic $arg</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun May 11, 2003 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-11T14:37:31-04:00</updated>

		<published>2003-05-11T14:37:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20068#p20068</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20068#p20068"/>
		<title type="html"><![CDATA[Problem with [ % ] when changing topic]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20068#p20068"><![CDATA[
I'm using this script for change the topic:<br>bind pub o|o "[char]topic" pub_topic<br>proc pub_topic {user uhost hand chan arg} {<br>  set topic [lrange $arg 0 end]<br>  putserv "TOPIC $chan :$topic"<br>  putlog "$chan: Changing topic too \"$topic\" by request of $user\[$hand\]"<br>}<br><br>but if i do !topic [test]<br>it changes the topic for "{[test]}"<br>what's the problem?<p>Statistics: Posted by Guest — Sun May 11, 2003 2:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
