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

	<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>2007-04-27T10:35:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cryptic]]></name></author>
		<updated>2007-04-27T10:35:53-04:00</updated>

		<published>2007-04-27T10:35:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72294#p72294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72294#p72294"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72294#p72294"><![CDATA[
<blockquote class="uncited"><div>If you'd looked at the tcl-commands.doc again, you'd have noticed that "bind kick" requires 6 arguments, not 5.</div></blockquote><br>Dang it you're right lol. I looked and looked and it was as plain as the nose on my face...probably why I kept missing it.  Thanks rosc2112. Sorry to be a pain there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br><br>Thank you tosser for all your help as well. Don't worry about all the errors Im extremely greatful. Gotta remember my original script lol If life didnt have bugs, we wouldnt need Raid lmao.<br><br><br>Thanks rosc and tosser! You both have been a extremely great help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8944">cryptic</a> — Fri Apr 27, 2007 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-04-27T04:42:19-04:00</updated>

		<published>2007-04-27T04:42:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72288#p72288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72288#p72288"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72288#p72288"><![CDATA[
Here is a fixed version:<br><div class="codebox"><p>Code: </p><pre><code>namespace eval monitor {    # Author / Version / Script info    variable author "r0t3n"    variable version "1.01"    variable script "[lindex [split [info script] /] end]"    # The channel(s) you want to monitor    variable channels "[list #chan1 #chan2 #chan3]"    # The channel you want to relay/send the messages to    variable alert "#channel"    # The bind(s)    bind join - {*} [namespace current]::onjoin    bind part - {*} [namespace current]::onpart    bind sign - {*} [namespace current]::onquit    bind mode - {*} [namespace current]::onmode    bind kick - {*} [namespace current]::onkick    bind nick - {*} [namespace current]::onnick    bind topc - {*} [namespace current]::ontopc    bind pubm - {*} [namespace current]::onpubm}proc monitor::checkchan {channel} {    if {[lsearch -exact [string tolower $monitor::channels] [string tolower $channel]] == -1} {        return 0    } else {        return 1    }}proc monitor::onjoin {nickname hostname handle channel} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033JOINS\003\002- \[$channel\] $nickname \[$nickname!$hostname\]"    }}proc monitor::onpart {nickname hostname handle channel {reason ""}} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033PARTS\003\002- \[$channel\] $nickname"    }}proc monitor::onquit {nickname hostname handle channel reason} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033QUITS\003\002- $nickname has quit \($reason\)"    }}proc monitor::onmode {nickname hostname handle channel mode target} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033MODES\003\002- $nickname set mode(s) $mode $target on $channel"    }}proc monitor::onkick {nickname hostname handle channel target reason} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033KICK\003\002- $nickname kicked $target \002\0034$reason\003\002 - $channel"    }}proc monitor::onnick {nickname hostname handle channel newnick} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033NICK\003\002- $nickname changed their nickname to $newnick"    }}proc monitor::ontopc {nickname hostname handle channel topic} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033TOPIC\003\002- $nickname changed the topic on $channel to: [join $topic]"    }}proc monitor::onpubm {nickname hostname handle channel text} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033PUBM\003\002- $nickname said \002\0034$text\003\002 - $channel"    }}putlog "Channel Monitor ($monitor::script) v$monitor::version by $monitor::author loaded."</code></pre></div>Sorry about the errors, i must of been half awake when i was writing it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Apr 27, 2007 4:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-26T22:41:34-04:00</updated>

		<published>2007-04-26T22:41:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72284#p72284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72284#p72284"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72284#p72284"><![CDATA[
If you'd looked at the tcl-commands.doc again, you'd have noticed that "bind kick" requires 6 arguments, not 5.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Apr 26, 2007 10:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cryptic]]></name></author>
		<updated>2007-04-26T19:25:54-04:00</updated>

		<published>2007-04-26T19:25:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72280#p72280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72280#p72280"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72280#p72280"><![CDATA[
<blockquote class="uncited"><div>bind sign - {*} [namespace current]::onquit<br>proc monitor::onsign {nickname hostname handle channel reason} { <br><br>There's your invalid command/proc name. It has the wrong name..<br><br>And obviously the error mentioned invalid number of args being passed to ontopc, so go read the tcl-commands.doc and look at the bind/proc in question to see what args the bind is passing to the proc.</div></blockquote>Thank you rosc2112.<br><br>I fixed the onquit error problem. I just changed the proc onsign to onquit in the script. But I'm still getting the wrong # args error and I looked it up but cant find what the proper # of args or what should be sent through.<br><br>Here is the .set bug info that is coming back. How it says it should be here is the way the arguments are already set so I'm lost.<br><div class="codebox"><p>Code: </p><pre><code>&lt;MonitorBot&gt; Currently: wrong # args: should be "::monitor::onkick nickname hostname handle target reason"&lt;MonitorBot&gt; Currently:     while executing&lt;MonitorBot&gt; Currently: "::monitor::onkick $_kick1 $_kick2 $_kick3 $_kick4 $_kick5 $_kick6"</code></pre></div>Slowly but surely making this sript work without the bugs <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=8944">cryptic</a> — Thu Apr 26, 2007 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-26T16:23:06-04:00</updated>

		<published>2007-04-26T16:23:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72278#p72278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72278#p72278"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72278#p72278"><![CDATA[
bind sign - {*} [namespace current]::onquit<br>proc monitor::onsign {nickname hostname handle channel reason} { <br><br>There's your invalid command/proc name. It has the wrong name..<br><br>And obviously the error mentioned invalid number of args being passed to ontopc, so go read the tcl-commands.doc and look at the bind/proc in question to see what args the bind is passing to the proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Apr 26, 2007 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-04-26T16:13:58-04:00</updated>

		<published>2007-04-26T16:13:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72277#p72277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72277#p72277"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72277#p72277"><![CDATA[
It's time to learn how .set errorInfo works, and how to debug simple tcl errors! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>When reporting bugs, PLEASE include the .set errorInfo debug info!<br>Read: <a href="http://forum.egghelp.org/viewtopic.php?t=10215" class="postlink">http://forum.egghelp.org/viewtopic.php?t=10215</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Apr 26, 2007 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cryptic]]></name></author>
		<updated>2007-04-26T15:12:02-04:00</updated>

		<published>2007-04-26T15:12:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72275#p72275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72275#p72275"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72275#p72275"><![CDATA[
ok, the script works like a dream tosser.<br><br>However, I think we found our first cockroachs  lmao<br><br><br>&lt;MonitorBot&gt; [15:09] Tcl error [::monitor::onquit]: invalid command name "::monitor::onquit"<br>&lt;MonitorBot&gt; [15:27] Tcl error [::monitor::ontopc]: wrong # args: should be "::monitor::ontopc nickname hostname handle topic"<br><br>Its receiving this error when someone quits and not sure what the other one is about I tried fiddling with but I'm lost to the error.<br><br>You have any ideas?<br><br>PS: would there be a way to make this script read channel notices as well? I have alot of teens that love doing channel notices to spam.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8944">cryptic</a> — Thu Apr 26, 2007 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-04-26T15:02:28-04:00</updated>

		<published>2007-04-26T15:02:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72274#p72274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72274#p72274"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72274#p72274"><![CDATA[
sorry about missing that end quote, but np <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=6300">r0t3n</a> — Thu Apr 26, 2007 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cryptic]]></name></author>
		<updated>2007-04-26T14:58:26-04:00</updated>

		<published>2007-04-26T14:58:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72273#p72273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72273#p72273"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72273#p72273"><![CDATA[
thank you tosser!!<br><br>Works like a dream. I did have to place an end quote after the putlog script information at the bottom because it was unclosed. But after fixing that, works exactly as I wanted it to.<br><br>Thank you so much!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8944">cryptic</a> — Thu Apr 26, 2007 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-04-26T09:27:49-04:00</updated>

		<published>2007-04-26T09:27:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72268#p72268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72268#p72268"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72268#p72268"><![CDATA[
all i can say is alot of errors, you have missing if's, a missing proc etc<br><br>Try:<br><div class="codebox"><p>Code: </p><pre><code>namespace eval monitor {    # Author / Version / Script info    variable author "r0t3n"    variable version "1.00"    variable script "[lindex [split [info script] /] end]"    # The channel(s) you want to monitor    variable channels "[list #chan1 #chan2 #chan3]"    # The channel you want to relay/send the messages to    variable alert "#channel"    # The bind(s)    bind join - {*} [namespace current]::onjoin    bind part - {*} [namespace current]::onpart    bind sign - {*} [namespace current]::onquit    bind mode - {*} [namespace current]::onmode    bind kick - {*} [namespace current]::onkick    bind nick - {*} [namespace current]::onnick    bind topc - {*} [namespace current]::ontopc    bind pubm - {*} [namespace current]::onpubm}proc monitor::checkchan {channel} {    if {[lsearch -exact [string tolower $monitor::channels] [string tolower $channel]] == -1} {        return 0    } else {        return 1    }}proc monitor::onjoin {nickname hostname handle channel} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033JOINS\003\002- \[$channel\] $nickname \[$nickname!$hostname\]"    }}proc monitor::onpart {nickname hostname handle channel {reason ""}} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033PARTS\003\002- \[$channel\] $nickname"    }}proc monitor::onsign {nickname hostname handle channel reason} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033QUITS\003\002- $nickname has quit \($reason\)"    }}proc monitor::onmode {nickname hostname handle channel mode target} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033MODES\003\002- $nickname set mode(s) $mode $target on $channel"    }}proc monitor::onkick {nickname hostname handle target reason} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033KICK\003\002- $nickname kicked $target \002\0034$reason\003\002 - $channel"    }}proc monitor::onnick {nickname hostname handle channel newnick} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033NICK\003\002- $nickname changed their nickname to $newnick"    }}proc monitor::ontopc {nickname hostname handle topic} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033TOPIC\003\002- $nickname changed the topic on $channel to: [join $topic]"    }}proc monitor::onpubm {nickname hostname handle channel text} {    if {[monitor::checkchan $channel]} {        putserv "PRIVMSG $monitor::alert : -\002\0033PUBM\003\002- $nickname said \002\0034$text\003\002 - $channel"    }}putlog "Channel Monitor ($monitor::script) v$monitor::version by $monitor::author loaded.</code></pre></div>Bare in mind, this is not tested, but should work nicely <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=6300">r0t3n</a> — Thu Apr 26, 2007 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cryptic]]></name></author>
		<updated>2007-04-25T21:05:36-04:00</updated>

		<published>2007-04-25T21:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72256#p72256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72256#p72256"/>
		<title type="html"><![CDATA[need a professionals help with a monitoring script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72256#p72256"><![CDATA[
hello!<br>  I have this script that allows me to monitor all activity and send the echo to another room to view without having to actually be in the room.<br><br>However, though it works ok, I keep receiving errors such as:<br><br>&lt;MonitorBot&gt; [20:52] Tcl error [pmsg]: invalid command name "pmsg"<br>&lt;MonitorBot&gt; [20:52] Tcl error [pmsg]: invalid command name "pmsg"<br>&lt;MonitorBot&gt; [20:52] Tcl error [pmsg]: invalid command name "pmsg"<br>&lt;MonitorBot&gt; [20:52] Tcl error [pmsg]: invalid command name "pmsg"<br>&lt;MonitorBot&gt; [20:52] Tcl error [joined]: invalid command name "![$chan == "#channelservices" || $chan == "#channelservices1""<br>&lt;MonitorBot&gt; [20:52] Tcl error [mode]: invalid command name "mode"<br>&lt;MonitorBot&gt; [20:52] Tcl error [pmsg]: invalid command name "pmsg"<br><br><br>Would someone please look over this code and tell me where its going wrong?  I'd greatly appreciate it.<br><div class="codebox"><p>Code: </p><pre><code>bind JOIN - * joinedbind PART - * partbind SIGN - * quitbind MODE - * modebind KICK - * kickbind NICK - * nickbind TOPC - * topicbind PUBM - * pmsg#SETTINGS##the channel you would like all msgs sent to#"set ss "#channelservices"#dont touch this is the version number#set ver "7.1.1"set lastauthor "PlayDough"set alert "#channelservices"#TCL CODE DONT EDIT!#proc putnow { a } {  append a "\n"  putdccraw 0 [string length $a] $a}proc joined { nick uhost hand chan args } {        set uhost [getchanhost $nick]        {![$chan == "#channelservices" || $chan == "#channelservices1"}        {        putnow "PRIVMSG #channelservices : -\002\0033JOINS\003\002- \[$chan\] $nick \[$nick!$uhost\]"        }proc part { nick uhost hand chan args} { set uhost [getchanhost $nick]        {![$chan == "#channelservices" || $chan == "#freeservices"}        {        putnow "PRIVMSG #channelservices : -\002\0033JOINS\003\002- \[$chan\] $nick \[$nick!$uhost\]"        }proc part { nick uhost hand chan args} {        putnow "PRIVMSG #channelservices : -\0033\002Parts\002\003-\[$chan\] $nick"        }proc quit { nick uhost hand chan reason } {        putnow "PRIVMSG #channelservices : -\002\0033QUITS\003\002- $nick has quit ($reason)"}proc mode { nick uhost handle chan mode target } {        putnow "PRIVMSG #channelservices : -MODES- $nick set to $mode $target on $chan"}proc kick { nick uhost handle chan target reason } {        putnow "PRIVMSG #channelservices : -\0033KICK\0033- $nick kicked $target \002\0034$reason\003\002 - $chan" }proc nick { nick uhost handle chan newnick } {        putnow "PRIVMSG #channelservices : -NICK- $nick changed their nick to $newnick"        }proc topic { nick uhost hand chan topic } {        putnow "PRIVMSG #channelservices : -TOPIC- $nick changed the topic on $chan to: $topic"        }}</code></pre></div>if anyone knows of a better channel monitoring script that will send, or do, what the above is trying to do, all suggestions would be extremely helpful.<br><br>Thanks in advance!<br><br><br><br>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8944">cryptic</a> — Wed Apr 25, 2007 9:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
