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

	<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-07-02T08:58:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-07-02T08:58:09-04:00</updated>

		<published>2007-07-02T08:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74118#p74118</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74118#p74118"/>
		<title type="html"><![CDATA[Need help converting to a pushmode =\]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74118#p74118"><![CDATA[
I'd rather suggest replacing that line with this:<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $who] || ![onchan $who $chan]} {return}</code></pre></div>Checks wether the specified nick is present on the current channel, and aborts if not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jul 02, 2007 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-07-02T01:34:57-04:00</updated>

		<published>2007-07-02T01:34:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74108#p74108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74108#p74108"/>
		<title type="html"><![CDATA[Need help converting to a pushmode =\]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74108#p74108"><![CDATA[
<blockquote class="uncited"><div>However  When you just type !sban  without any nick   it will set +b ~q:*!*@*  anyway i can  stop that from happening..   Like make it not do anything if no nick is supplied ?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>change this:if {[isbotnick $who]} { return } to this:if {$who == "" || [isbotnick $who]} { return }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jul 02, 2007 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BIF]]></name></author>
		<updated>2007-07-02T00:52:21-04:00</updated>

		<published>2007-07-02T00:52:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74107#p74107</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74107#p74107"/>
		<title type="html"><![CDATA[Need help converting to a pushmode =\]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74107#p74107"><![CDATA[
However  When you just type !sban  without any nick   it will set +b ~q:*!*@*  anyway i can  stop that from happening..   Like make it not do anything if no nick is supplied ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8042">BIF</a> — Mon Jul 02, 2007 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BIF]]></name></author>
		<updated>2007-07-02T00:51:04-04:00</updated>

		<published>2007-07-02T00:51:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74106#p74106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74106#p74106"/>
		<title type="html"><![CDATA[Ok thx I have figured it out and this is working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74106#p74106"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub:sban {nick uhost hand chan txt} {  set txt [split $txt]  set who [lindex $txt 0]  if {[isbotnick $who]} { return }  append ban "~q:*!*@" [lindex [split [getchanhost $who $chan] "@"] 1]  if {[llength $txt] &gt; 1} {    set reason [join [lrange $txt 1 "end"]]  } else {    set reason "Requested"  }  if {[isvoice $who $chan]} {    pushmode $chan "-v" $who  }  pushmode $chan +b $ban    puthelp "NOTICE $who :You Have been Placed on Silent Ban For bad Behavior."  flushmode $chan  return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8042">BIF</a> — Mon Jul 02, 2007 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-07-01T08:12:48-04:00</updated>

		<published>2007-07-01T08:12:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74079#p74079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74079#p74079"/>
		<title type="html"><![CDATA[Need help converting to a pushmode =\]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74079#p74079"><![CDATA[
<blockquote class="uncited"><div>  pushmode &lt;channel&gt; &lt;mode&gt; [arg]<br>    Description: sends out a channel mode change (ex: pushmode #lame +o<br>      goober) through the bot's queuing system. All the mode changes will<br>      be sent out at once (combined into one line as much as possible) after<br>      the script finishes, or when 'flushmode' is called.<br>    Returns: nothing<br>    Module: irc</div></blockquote>So basically, to add the ban "*!*@badhost" on channel "#mychannel", you'd do something like this:<div class="codebox"><p>Code: </p><pre><code>pushmode #mychannel +b "*!*@badhost"</code></pre></div>Be aware that some of the ugly hacks in mirc-scripts are'nt nessecary (or available) in tcl (such as the "remove-space" token $+).<br>It would seem you're trying to add a ban such as this: "~q:*!*user@host", which would probably be something like this, depending on your code:<div class="codebox"><p>Code: </p><pre><code>pushmode $channel +b "~q:*!*${host}"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jul 01, 2007 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BIF]]></name></author>
		<updated>2007-07-01T03:04:21-04:00</updated>

		<published>2007-07-01T03:04:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74073#p74073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74073#p74073"/>
		<title type="html"><![CDATA[Need help converting to a pushmode =\]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74073#p74073"><![CDATA[
qban { if ($1 ison $chan) { /mode # +b ~q: $+ $address($$1,2) } }<br>deqban { if ($1 ison $chan) { /mode # -b ~q: $+ $address($$1,2) } }<br><br>Cannot figure out how to get this to work in my bot<br>I have the rest of the script already written but this is stumping me<br>i thought like   pushmode $chan +b ~q: $+ $host   or something lol<br>pls help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8042">BIF</a> — Sun Jul 01, 2007 3:04 am</p><hr />
]]></content>
	</entry>
	</feed>
