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

	<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-12T13:41:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-12T13:41:13-04:00</updated>

		<published>2004-04-12T13:41:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35464#p35464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35464#p35464"/>
		<title type="html"><![CDATA[Looking for a simple &quot;on command - msg to chan&quot; sc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35464#p35464"><![CDATA[
np<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Apr 12, 2004 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-12T11:30:40-04:00</updated>

		<published>2004-04-12T11:30:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35460#p35460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35460#p35460"/>
		<title type="html"><![CDATA[Looking for a simple &quot;on command - msg to chan&quot; sc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35460#p35460"><![CDATA[
thx a lot ... with some modifications I finally got what I wanted.. <br><br>;D<p>Statistics: Posted by Guest — Mon Apr 12, 2004 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-10T05:34:15-04:00</updated>

		<published>2004-04-10T05:34:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35390#p35390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35390#p35390"/>
		<title type="html"><![CDATA[Looking for a simple &quot;on command - msg to chan&quot; sc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35390#p35390"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !which which:pubset filename which.datproc which:pub {nick host hand chan arg} {  global filename  if {[ownerison $chan]} {    foreach user [userlist n] {      if {[onchan $user $chan]} {        privmsg "PRIVMSG $nick :New Which\(\002[join [lrange $arg 0 end]]\002\) by \(\002$nick\002\) is been submited on \(\002[clock format [clock seconds] -format \"%A %d %B %Y at %T\"]\002\)      }    }  } else {    set wfile [open $filename w]    puts $wfile "n [clock seconds] $nick [join [lrange $arg 0 end]]"    close $wfile    putserv "NOTICE $nick :Your Which is been submited."  }}proc ownerison {chan} {  foreach user [userlist n] {    if {[onchan $user $chan]} {      return 1    }  }  return 0}bind join - * join:pubproc join:pub {nick host hand} {  global filename  if {[matchattr $nick n] &amp;&amp; [file exists $filename]} {    set rfile [open $filename r]    set data [read $rfile]    close $rfile    foreach line [split $data \n] {      if {[string -nocase equal n [lindex $line 0]]} {        privmsg "PRIVMSG $nick :New Which \(\002[join [lrange $line 3 end]]\002\) by \(\002[lindex $line 2]\002\) is been submited on \(\002[clock format [lindex $line 1] -format \"%A %d %B %Y at %T\"]\002\)."      }    }    set wfile [open $filename w]    foreach line [split $data \n] {      if {[string match -nocase equal n [lindex $line 0]]} {        puts $wfile "o [join [lrange $line 1 end]]"      } else {      puts $wfile "$line"      }    }    close $wfile  }}</code></pre></div>didn't test it but it will notify owner on join if there where no owners present on the channel while the which is submited there this is only public if u want /msg command edit it a bit let me know if it is bugfree sorry got no time and don't feel like testing hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Apr 10, 2004 5:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-09T18:24:09-04:00</updated>

		<published>2004-04-09T18:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35382#p35382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35382#p35382"/>
		<title type="html"><![CDATA[Looking for a simple &quot;on command - msg to chan&quot; sc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35382#p35382"><![CDATA[
Hi,<br><br>as described in the topic, I need a script whis does the following:<br><br><em class="text-italics"><br>#mainchannel<br>[time]&lt;nick&gt;!whish 3 mio $<br>[time]&lt;bot&gt; Nick, your wish has been submitted.<br>....<br>....<br>#masterchannel<br>&lt;bot&gt; Nicks wish at [time] was: 3 Mio $<br></em><br><br>maybe not only per !publiccommand but also per /msg. <br><br>Anyone knows a script which does this?<br><br>tia<p>Statistics: Posted by Guest — Fri Apr 09, 2004 6:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
