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

	<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>2004-10-15T13:40:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-15T13:40:24-04:00</updated>

		<published>2004-10-15T13:40:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41899#p41899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41899#p41899"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41899#p41899"><![CDATA[
No awyeah, the point was to create a messenger that does a pm if that person wants to get pm'ed and gets noticed if he doesnt want pm's<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Oct 15, 2004 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-15T09:50:51-04:00</updated>

		<published>2004-10-15T09:50:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41889#p41889</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41889#p41889"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41889#p41889"><![CDATA[
The problem is with the variable you are trying to pass on to the new procedure as user has already defined.<br><br>Why are you trying to do it in two procedures? Do it in one simple as that (i.e. in msg:userflag). It might be a bit messy but, it would certainly work and be a bit faster.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 15, 2004 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-15T09:22:58-04:00</updated>

		<published>2004-10-15T09:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41884#p41884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41884#p41884"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41884#p41884"><![CDATA[
Well, i dont know how exactly, but it works now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Oct 15, 2004 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-15T03:46:38-04:00</updated>

		<published>2004-10-15T03:46:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41875#p41875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41875#p41875"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41875#p41875"><![CDATA[
<blockquote class="uncited"><div>Well thats my problem user, If i change q:msg it doesn't work anymore as it keeps giving me errors when i do, And as i put it to $text it doesnt work either as it has privmsg a user with a line :E</div></blockquote>What did you change and what error did you get?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 15, 2004 3:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-15T02:11:44-04:00</updated>

		<published>2004-10-15T02:11:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41871#p41871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41871#p41871"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41871#p41871"><![CDATA[
Well thats my problem user, If i change q:msg it doesn't work anymore as it keeps giving me errors when i do, And as i put it to $text it doesnt work either as it has privmsg a user with a line :E<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Oct 15, 2004 2:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-14T16:25:11-04:00</updated>

		<published>2004-10-14T16:25:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41847#p41847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41847#p41847"/>
		<title type="html"><![CDATA[Re: cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41847#p41847"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set userflag 0proc q:msg {text} {    global userflag    if {$userflag == "0"} {putquick "NOTICE $text :$text"} else {putquick "PRIVMSG $text :$text"}}proc msg:userflag {nick uhost hand text} {set a [getuser $hand XTRA userflag]putlog "1"if {$a == ""} {q:msg "PRIVMSG $nick :Your userflags are: (none)"putlog "2"} elseif {$a == "0"} {q:msg "NOTICE $nick :Your userflags are: +n"putlog "3"} elseif {$a == "1"} {putlog "4"q:msg "NOTICE $nick :Your userflags are: +m"}</code></pre></div>I just can't get this work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote>I think it works just fine..but maybe not as you intended <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>The argument you pass to q:msg is used both as a target and as a message (putquick "NOTICE $text :$text"), so the resulting string sent to the irc server will be something like this:<br><br>"NOTICE PRIVMSG someNick :Your userflags are: something :PRIVMSG someNick :Your userflags are: something"<br><br>which doesn't make much sense to me...poor "PRIVMSG"/"NOTICE" will get alot of one-word notices (because of the misplaced colon) <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=2878">user</a> — Thu Oct 14, 2004 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-10-14T16:13:15-04:00</updated>

		<published>2004-10-14T16:13:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41844#p41844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41844#p41844"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41844#p41844"><![CDATA[
Display errors if any. And what about the bind, don't you need to bind it to something?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Oct 14, 2004 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-14T12:30:17-04:00</updated>

		<published>2004-10-14T12:30:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41839#p41839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41839#p41839"/>
		<title type="html"><![CDATA[cry for help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41839#p41839"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set userflag 0proc q:msg {text} {    global userflag    if {$userflag == "0"} {putquick "NOTICE $text :$text"} else {putquick "PRIVMSG $text :$text"}}proc msg:userflag {nick uhost hand text} {set a [getuser $hand XTRA userflag]putlog "1"if {$a == ""} {q:msg "PRIVMSG $nick :Your userflags are: (none)"putlog "2"} elseif {$a == "0"} {q:msg "NOTICE $nick :Your userflags are: +n"putlog "3"} elseif {$a == "1"} {putlog "4"q:msg "NOTICE $nick :Your userflags are: +m"}</code></pre></div>I just can't get this work <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=5078">metroid</a> — Thu Oct 14, 2004 12:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
