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

	<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-04-08T16:56:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-08T16:56:35-04:00</updated>

		<published>2004-04-08T16:56:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35334#p35334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35334#p35334"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35334#p35334"><![CDATA[
not sur if <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=943" class="postlink">this</a> is what u looking for but from what i can see i gues u are<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Apr 08, 2004 4:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-05T08:37:32-04:00</updated>

		<published>2004-04-05T08:37:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35242#p35242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35242#p35242"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35242#p35242"><![CDATA[
...also, use 'file rename' instead of 'exec cp'+'exec rm'. But why use a file to store those nicks? Storing them in an array would make things alot easier.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Apr 05, 2004 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-04-05T08:25:59-04:00</updated>

		<published>2004-04-05T08:25:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35241#p35241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35241#p35241"/>
		<title type="html"><![CDATA[Re: dont work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35241#p35241"><![CDATA[
<blockquote class="uncited"><div>now i get this<br>[14:41] Tcl error [proc_logout]: couldn't execute "rm ops": no such file or directory</div></blockquote>dont use exec's, tcl's "file" command provides such a feature<br>file delete ?-force? ?- -? pathname ?pathname ... ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Apr 05, 2004 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2004-04-04T15:42:38-04:00</updated>

		<published>2004-04-04T15:42:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35218#p35218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35218#p35218"/>
		<title type="html"><![CDATA[dont work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35218#p35218"><![CDATA[
now i get this<br>[14:41] Tcl error [proc_logout]: couldn't execute "rm ops": no such file or directory<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Sun Apr 04, 2004 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-04T13:31:29-04:00</updated>

		<published>2004-04-04T13:31:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35209#p35209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35209#p35209"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35209#p35209"><![CDATA[
Oh, my mistake.<br>Change this:<div class="codebox"><p>Code: </p><pre><code>if {![string equal -nocase "$line" "$nick"} {</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>if {![string equal -nocase "$line" "$nick"]} {</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4667">Xpert</a> — Sun Apr 04, 2004 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2004-04-04T13:28:48-04:00</updated>

		<published>2004-04-04T13:28:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35208#p35208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35208#p35208"/>
		<title type="html"><![CDATA[doesent work]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35208#p35208"><![CDATA[
i get this error <br>[12:26] Tcl error [proc_logout]: missing close-bracket <br>and i cant find were it is missing<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Sun Apr 04, 2004 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-04-04T04:55:04-04:00</updated>

		<published>2004-04-04T04:55:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35194#p35194</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35194#p35194"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35194#p35194"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>Try this:bind pub - .logout proc_logout proc proc_logout {nick uhost handle channel arg} {   set file ops   if {![file exists $file]} {close [open $file w]}   set in [open $file "r"]  set out [open ${file}.tmp "w+"]   while {![eof $in]} {     set line [gets $in]     if {![string equal -nocase "$line" "$nick"} {       puts $out $line     }   }   close $in   close $out   exec "rm $file"   exec "cp ${file}.tmp $file"   exec "rm ${file}.tmp"  putserv "NOTICE $nick :You Are Now LOGED OUT" }</code></pre></div>Should work, not tested <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Why not use TCL's "file" functions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Sun Apr 04, 2004 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-04T04:47:02-04:00</updated>

		<published>2004-04-04T04:47:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35191#p35191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35191#p35191"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35191#p35191"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>Try this:bind pub - .logout proc_logout proc proc_logout {nick uhost handle channel arg} {   set file ops   if {![file exists $file]} {close [open $file w]}   set in [open $file "r"]  set out [open ${file}.tmp "w+"]   while {![eof $in]} {     set line [gets $in]     if {![string equal -nocase "$line" "$nick"} {       puts $out $line     }   }   close $in   close $out   exec "rm $file"   exec "cp ${file}.tmp $file"   exec "rm ${file}.tmp"  putserv "NOTICE $nick :You Are Now LOGED OUT" }</code></pre></div>Should work, not tested <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4667">Xpert</a> — Sun Apr 04, 2004 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2004-04-03T20:11:47-04:00</updated>

		<published>2004-04-03T20:11:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35182#p35182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35182#p35182"/>
		<title type="html"><![CDATA[login/logout script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35182#p35182"><![CDATA[
hello i am making a login logout script the login command i think works havent tested it yet the .ops command works just the logout command i need it to remove the nick from the file and it is not working can someone please help me thanks!<br><div class="codebox"><p>Code: </p><pre><code>bind pub - .login proc_login proc proc_login {nick uhost handle channel arg} {   set file ops  if {![file exists $file]} {close [open $file w]}   set io [open $file a+]   puts $io $nick   close $io   putserv "NOTICE $nick :You Are Now LOGED IN" } bind pub - .logout proc_logout proc proc_logout {nick uhost handle channel arg} {   set file ops  if {![file exists $file]} {close [open $file w]}   set io [open $file r+]   puts $io $nick   close $io   putserv "NOTICE $nick :You Are Now LOGED OUT" } bind pub - .ops proc_opsproc proc_ops {nick uhost handle channel arg} {   set file ops   if {![file exists $file]} {close [open $file w]}   set io [open $file r]   set list ""   while {![eof $io]} {     gets $io line     if {[string trim $line] == ""} {continue}     lappend list $line   }   close $io   set message "\0002Available Ops\002 :"   putserv "PRIVMSG $channel :$message"   foreach line $list {     putquick "PRIVMSG $channel :$line"   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Sat Apr 03, 2004 8:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
