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

	<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>2011-02-21T23:43:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-21T23:43:25-04:00</updated>

		<published>2011-02-21T23:43:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96175#p96175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96175#p96175"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96175#p96175"><![CDATA[
Great work there, caesar, Really appreciate your help, I'd suggest you to add a few commands, and upload it as a TCL on egghelp. It's really needed by many users on IRC.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Mon Feb 21, 2011 11:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T11:51:44-04:00</updated>

		<published>2011-02-21T11:51:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96153#p96153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96153#p96153"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96153#p96153"><![CDATA[
I've changed the previous code quite a few hours ago. Re-copy/paste it in to your .tcl file and rehash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-21T11:32:19-04:00</updated>

		<published>2011-02-21T11:32:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96152#p96152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96152#p96152"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96152#p96152"><![CDATA[
<blockquote class="uncited"><div>((USARMY): [09:58] Tcl error [myx:ban]: wrong # args: should be "maskhost nick!user@host"</div></blockquote>This error, I'd try testing this TCL with 1.6.20, will see if it works there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Mon Feb 21, 2011 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T09:01:14-04:00</updated>

		<published>2011-02-21T09:01:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96144#p96144</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96144#p96144"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96144#p96144"><![CDATA[
What error? Be more specific please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2011-02-21T06:27:37-04:00</updated>

		<published>2011-02-21T06:27:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96141#p96141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96141#p96141"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96141#p96141"><![CDATA[
You might wanna try updating to the new version of eggdrop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Mon Feb 21, 2011 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-21T05:43:53-04:00</updated>

		<published>2011-02-21T05:43:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96140#p96140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96140#p96140"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96140#p96140"><![CDATA[
I'm using eggdropv1.6.17.tar.gz....<br><br>Do I need to edit some thing in your specified code...... cause it still gives that error....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Mon Feb 21, 2011 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T01:51:25-04:00</updated>

		<published>2011-02-21T01:51:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96137#p96137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96137#p96137"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96137#p96137"><![CDATA[
&lt;/face palm&gt;beginner mistakes. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>Btw, what version of eggdrop are you using?<br><br>It's weird as from what I read in <a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html" class="postlink">tcl-commands.doc</a> the 'getchanhost' returns user@host thus the need to add "nick!" and "maskhost" that expects a "nick!user@host" and a masktype (integer), that if is not specified will be by default 2.<br><br>As for adding the user handle in the reason, use '$hand' before $reason or after it, like "$hand $reason" or "$reason $hand".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 21, 2011 1:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-20T06:00:25-04:00</updated>

		<published>2011-02-20T06:00:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96123#p96123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96123#p96123"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96123#p96123"><![CDATA[
<blockquote class="uncited"><div>((USARMY): [09:58] Tcl error [myx:ban]: wrong # args: should be "maskhost nick!user@host"<br><br>pushmode"$chan -o $nick</div></blockquote>also gives that .o error somewhere in that syntax<br><br>Gives this error, for .b command, otherwise it's working fine.<br><br>And could you also tell me what should I write with $reason so that the bot also displays the handle of the op who uses the .k and .b commands. in the kick/ban messages<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Sun Feb 20, 2011 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-19T18:46:19-04:00</updated>

		<published>2011-02-19T18:46:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96117#p96117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96117#p96117"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96117#p96117"><![CDATA[
Indeed, I rushed and forgot to create the '.k' bind. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I've edited my previous post and updated the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Feb 19, 2011 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-19T15:52:34-04:00</updated>

		<published>2011-02-19T15:52:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96108#p96108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96108#p96108"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96108#p96108"><![CDATA[
<blockquote class="uncited"><div>(@Hawk-): .k musk bye<br>(@Hawk-): .nb musk<br>-USARMY- .nb &lt;nick&gt; &lt;reason&gt;<br>(@Hawk-): .nb musk bad<br>*** X sets mode: +b musk!*@*<br>*** [#islamabad] Banned- musk<br>*** musk was kicked by X ((LilleHopp) Feb 19:Bad nick, change it and rejoin)</div></blockquote>The kick command is not working perhaps the bind for .k is missing that's why, Also I'd like to say that .nb nick (doesn't require a reason) if an op uses .nb nick syntax the nick should be automatically banned with the default reason Bad nick, change it and rejoin. <br><br>The <br>.b command is also not working.<blockquote class="uncited"><div>((USARMY): [19:50] Tcl error [myx:ban]: wrong # args: should be "maskhost nick!user@host"</div></blockquote>gives this error. Could you please analyze thanks. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Also I'd like to have it, that the .o (the bot doesn't use X to op a certain person, but ops it itself).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Sat Feb 19, 2011 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-21T01:54:47-04:00</updated>

		<published>2011-02-19T05:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96102#p96102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96102#p96102"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96102#p96102"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o| .o myx:opbind pub o| .deop myx:deopbind pub o| .b myx:banbind pub o| .nb myx:nickbanbind pub o| .k myx:kickproc myx:op {nick uhost hand chan text} {  if {[botisop $chan]} {    pushmode $chan +o $nick  }}proc myx:deop {nick uhost hand chan text} {  if {[botisop $chan]} {    pushmode $chan -o $nick  }}proc myx:ban {nick uhost hand chan text} {  if {[llength $text] &gt;= 2} {    set user [lindex [split $text] 0]    if {![onchan $user $chan]} {      putserv "NOTICE $nick :sorry, $user is not on channel"      } else {      set reason [lrange [split $text] 1 end]      set mask "*!*@[lindex [split [getchanhost $user $chan] "@"] 1]"      putserv "PRIVMSG X :ban $chan $mask $reason"    }    } else {    putserv "NOTICE $nick :.b &lt;nick&gt; &lt;reason&gt;"  }}proc myx:kick {nick uhost hand chan text} {  if {[llength $text] &gt;= 2} {    set user [lindex [split $text] 0]    if {![onchan $user $chan]} {      putserv "NOTICE $nick :sorry, $user is not on channel"      } else {      set reason [lrange [split $text] 1 end]      putserv "PRIVMSG X :kick $chan $user $reason"    }    } else {    putserv "NOTICE $nick :.k &lt;nick&gt; &lt;reason&gt;"  }}proc myx:nickban {nick uhost hand chan text} {  if {[llength $text]} {    set user [lindex [split $text] 0]    if {![onchan $user $chan]} {      putserv "NOTICE $nick :sorry, $user is not on channel"      } else {      putserv "PRIVMSG X :ban $chan $user!*@* Bad nick, change it and rejoin"    }    } else {    putserv "NOTICE $nick :.nb &lt;nick&gt;"  }}</code></pre></div>I'm not 100% sure about the commands that are sent to X, so you should change them them accordingly.<br><br>Edit: fixed again.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Feb 19, 2011 5:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[samhain]]></name></author>
		<updated>2011-02-18T15:12:42-04:00</updated>

		<published>2011-02-18T15:12:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96085#p96085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96085#p96085"/>
		<title type="html"><![CDATA[Simple public command.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96085#p96085"><![CDATA[
Hi, I'm looking for a simple public commands script.<br><br>The command must start with the character ! or .<br><br>The commands should be the following with the following features.<br><br>.o (To op yourself)<br>.deop (to deop)<br><br>.b nick reason (To ban the *!*@host.domain of a user with the certain reason, the ban must be performed by (Undernet)'s service X)<br><br>.k nick reason (Simple kick with the specified reason)<br><br>.nb nick (To ban the nick!*@* of a user with reason Bad nick, change it and rejoin the ban must be performed by X (Undernet)'s service).<br><br>The flags for the people who'd be using these commands should be o (global).<br>that's all. <br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8567">samhain</a> — Fri Feb 18, 2011 3:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
