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

	<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>2006-09-07T17:25:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-09-07T13:26:55-04:00</updated>

		<published>2006-09-07T13:26:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66175#p66175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66175#p66175"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66175#p66175"><![CDATA[
@Tosser^^: Keep track of your variable names.. (no variable named arg defined anywhere within "gotraw").<br><br>@wonka071: You can't insert newlines in privmsgs.. you'll have to issue another <div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $n :blah..."</code></pre></div> for the second line if you want it on a separate line... (see Tosser^^'s example on this). And once again, please use [ code] [/code]-blocks when you post code...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Sep 07, 2006 1:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-09-07T17:25:37-04:00</updated>

		<published>2006-09-07T04:40:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66164#p66164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66164#p66164"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66164#p66164"><![CDATA[
*edited* thanks to nml375<br><br>Try:<br><div class="codebox"><p>Code: </p><pre><code>bind join - * fooproc foo {n u h c} {  puthelp "whois $n"}bind raw - 311 gotraw ;# first WHOIS replybind raw - 307 gotraw ;# nick has identified (registered)bind raw - 318 gotraw ;# End of /WHOIS listproc gotraw {f k t} {  global whoised  set n [lindex [split $t] 1]  if {$k == "311"} {    set whoised($n) "0"  } elseif {$k == "307"} {    incr whoised($n)  } elseif {$k == "318"} {    if {$whoised($n) == "0"} {      puthelp "privmsg $n :please identify or register your nick U can register your nick with this (/msg NickServ REGISTER yourpassword youremail) without the ()."      puthelp "privmsg $n :Also you can use this to identify yourself if you already registered (/msg NickServ IDENTIFY yourpass) without the ()."    }  }}putlog "nickreg loaded"</code></pre></div>Not tested, but should work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Sep 07, 2006 4:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wonka071]]></name></author>
		<updated>2006-09-06T19:59:07-04:00</updated>

		<published>2006-09-06T19:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66160#p66160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66160#p66160"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66160#p66160"><![CDATA[
kk changed it to this :<br>bind join - * foo<br>proc foo {n u h c} {<br>   puthelp "whois $n"<br>}<br>bind raw - 311 got311 ;# first WHOIS reply<br>bind raw - 307 got307 ;# nick has identified (registered)<br>bind raw - 318 got318 ;# End of /WHOIS list<br>proc got311 {f k t} {<br>   set n [lindex [split $t] 1]<br>   set ::whoised($n) 0<br>}<br>proc got307 {f k t} {<br>   set n [lindex [split $t] 1]<br>   incr ::whoised($n)<br>}<br>proc got318 {f k t} {<br>   set n [lindex [split $t] 1]<br>   if {$::whoised($n) == 0} {<br>      puthelp "privmsg $n :please identify or register your nick   U can register your nick with this (/msg NickServ REGISTER yourpassword youremail) without the ()<br>      Also you can use this to identify yourself if you already registered (/msg NickServ IDENTIFY yourpass) without the ()"<br>   }<br>} <br>putlog "nickreg loaded"<br>but this line not showing up <br>Also you can use this to identify yourself if you already registered  (/msg NickServ IDENTIFY yourpass) without the ()<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8141">wonka071</a> — Wed Sep 06, 2006 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-09-06T16:25:56-04:00</updated>

		<published>2006-09-06T16:25:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66157#p66157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66157#p66157"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66157#p66157"><![CDATA[
Please use code-blocks for code snippets.. (and indenting it would also be nice)<br><br>The cause for the problem, is that you try to use " in your message without escaping it, thus tcl think it's the end of the string, and starts parsing a new argument.<br>Quick-fix, put a \ infront of any " within the string (not the ones marking the start and end of string tho)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Sep 06, 2006 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wonka071]]></name></author>
		<updated>2006-09-06T15:52:01-04:00</updated>

		<published>2006-09-06T15:52:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66156#p66156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66156#p66156"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66156#p66156"><![CDATA[
changed the script like this<br><br>bind join - * foo<br>proc foo {n u h c} {<br>   puthelp "whois $n"<br>}<br>bind raw - 311 got311 ;# first WHOIS reply<br>bind raw - 307 got307 ;# nick has identified (registered)<br>bind raw - 318 got318 ;# End of /WHOIS list<br>proc got311 {f k t} {<br>   set n [lindex [split $t] 1]<br>   set ::whoised($n) 0<br>}<br>proc got307 {f k t} {<br>   set n [lindex [split $t] 1]<br>   incr ::whoised($n)<br>}<br>proc got318 {f k t} {<br>   set n [lindex [split $t] 1]<br>   if {$::whoised($n) == 0} {<br>      puthelp "privmsg $n :please identify or register your nick" U can register your nick with this (/msg NickServ REGISTER yourpassword youremail) without the ()<br>      Also you can use this to identify yourself if you already registered (/msg NickServ IDENTIFY yourpass) without the ()<br>   }<br>} <br>putlog "nickreg loaded"<br>get this error from the bot <br> Tcl error [got318]: wrong # args: should be "puthelp text ?options?"<br>Can somebody help thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8141">wonka071</a> — Wed Sep 06, 2006 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-09-04T00:16:50-04:00</updated>

		<published>2006-09-04T00:16:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66109#p66109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66109#p66109"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66109#p66109"><![CDATA[
try it and see for yourself, don't wait for somebody to approve your trials<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Sep 04, 2006 12:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wonka071]]></name></author>
		<updated>2006-09-03T12:15:04-04:00</updated>

		<published>2006-09-03T12:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66091#p66091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66091#p66091"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66091#p66091"><![CDATA[
thx for the script<br>would like to add use /msg NickServ REGISTER yourpassword youremail<br>to REGISTER<br>use /msg NIckServ IDENTIFY yourpassword to ID it you are REGISTERED<br><br>puthelp "privmsg $n :please identify or register your nick"<br>Should I added it here ?<br>   }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8141">wonka071</a> — Sun Sep 03, 2006 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T03:27:28-04:00</updated>

		<published>2005-08-19T03:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54480#p54480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54480#p54480"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54480#p54480"><![CDATA[
ok...so far so good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Next, I would like to add a 5 min. ban for non-reg. users (after they get the pm, of course).  (3) attempts to join in 24 hours without registering gets a permanent ban.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-19T03:00:42-04:00</updated>

		<published>2005-08-19T03:00:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54479#p54479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54479#p54479"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54479#p54479"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> <br><br>you usually add colors by using mIRC's color escape code, ASCII 3:<div class="codebox"><p>Code: </p><pre><code>puthelp "privmsg $n :\0034,8 this will show up in red on yellow background"</code></pre></div>refer to mIRC's online help for color codes designations<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 19, 2005 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T02:44:16-04:00</updated>

		<published>2005-08-19T02:44:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54478#p54478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54478#p54478"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54478#p54478"><![CDATA[
I've officially changed my nick to bonehead...lol<br>works FINE when u re-start...re-hash don't do a darn thing.<br><br>ur my hero <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  Thanks so much for your help.  Sorry I took so long to see the light.<br><br>Now...I'd like to dress up the pm output a bit.  What is an easy way (a.k.a. a way I'll understand) to add colors, or other gaudy things?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 2:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-19T02:26:21-04:00</updated>

		<published>2005-08-19T02:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54475#p54475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54475#p54475"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54475#p54475"><![CDATA[
that [string map] is useless (and their script is incorrect) but anyway<br><br>what's your channel? I can't believe my script behaves the way you said it does and want to see that for myself <br><br>of course, you need to leave only my script active in your config and restart the bot (<strong class="text-strong">re-start</strong>, not rehash)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 19, 2005 2:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T02:16:38-04:00</updated>

		<published>2005-08-19T02:16:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54474#p54474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54474#p54474"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54474#p54474"><![CDATA[
commented scripts in the .conf file, rehashed and same.<br>weird<br>any other ideas?<br>another person provided this code, which does the same thing:<br><br>#bind join - * foo<br>#proc foo {n u h c} { puthelp "whois $n" }<br>#bind raw - 307 got307 ;# nick has identified (registered)<br>#bind raw - 318 got318 ;# End of /WHOIS list<br>#proc gesc {str} { string tolower [string map {\\ \\\\ \[ \\\[ \] \\\] \{ \\\{ \} \\\}} $str] }<br>#proc got307 {f k t} { array set ::registered "[gesc [lindex $t 1]] 1" }<br>#proc got318 {f k t} { set n [gesc [lindex $t 1]]; set nick [lindex $t 1]; if {![info exists ::registered($n)]} { puthelp "PRIVMSG $nick :register ya damn nick" } { array unset ::registered $n } }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 2:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-19T01:50:50-04:00</updated>

		<published>2005-08-19T01:50:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54472#p54472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54472#p54472"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54472#p54472"><![CDATA[
<blockquote class="uncited"><div>dunno...the add'y is irc.gigairc.net</div></blockquote>it supports the standard WHOIS replies so my script should work as intended<br><br>remove all other scripts from config file temporarily and restart the bot, see if that helps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 19, 2005 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mikey2]]></name></author>
		<updated>2005-08-19T01:36:05-04:00</updated>

		<published>2005-08-19T01:36:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54470#p54470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54470#p54470"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54470#p54470"><![CDATA[
dunno...the add'y is irc.gigairc.net<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6613">mikey2</a> — Fri Aug 19, 2005 1:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-08-19T01:18:38-04:00</updated>

		<published>2005-08-19T01:18:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54468#p54468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54468#p54468"/>
		<title type="html"><![CDATA[pm user if raw 307 is null]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54468#p54468"><![CDATA[
what's the server IP?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Aug 19, 2005 1:18 am</p><hr />
]]></content>
	</entry>
	</feed>
