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

	<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>2002-02-25T00:19:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-02-25T00:19:00-04:00</updated>

		<published>2002-02-25T00:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4904#p4904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4904#p4904"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4904#p4904"><![CDATA[
Try this (it also won't kick users who msg the bot for ops):<div class="codebox"><p>Code: </p><pre><code># Ban the users also?set msgkick_setting(ban) 0# Set the kick message here.set msgkick_setting(kickmsg) "Do not message me."# Set the ban type here:# 1 - *!*@host.domain# 2 - *!user@host.domain# 3 - nick!*@host.domain# 4 - nick!user@host.domain# 5 - *!?user@*.host.domainset msgkick_setting(bantype) "1"bind msgm - * msgm:msgkickproc msgkick_maskban {nick uhost} {  global msgkick_setting  switch -- $msgkick_setting(bantype) {    1 { set ban "*!*@[lindex [split $uhost @] 1]" }    2 { set ban "*!$uhost" }    3 { set ban "$nick!*@[lindex [split $uhost @] 1]" }    4 { set ban "$nick!$uhost" }    5 { set ban "[maskhost $uhost]" }    default { set ban "*!*@[lindex [split $uhost @] 1]" }  }  return $ban}proc msgm:msgkick {nick uhost hand text} {  global msgkick_setting  if {[validuser $hand]} { return }  foreach chan [channels] {    if {![botonchan $chan] || ![onchan $nick $chan]} { continue }    if {$msgkick_setting(ban)} { putserv "MODE $chan +b [msgkick_maskban $nick $uhost]" }    putserv "KICK $chan $nick :$msgkick_setting(kickmsg)"  }}</code></pre></div>&lt;font size=-1&gt;[ This Message was edited by: Wcc on 2002-02-24 21:23 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Mon Feb 25, 2002 12:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DrTongue]]></name></author>
		<updated>2002-02-24T13:12:00-04:00</updated>

		<published>2002-02-24T13:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4892#p4892</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4892#p4892"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4892#p4892"><![CDATA[
Thank you Peterson, and thank you TrIpPen. egghead did find/write a nice little code that works just great. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Oh, and thanks a BUNCH again egghead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=757">DrTongue</a> — Sun Feb 24, 2002 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-02-24T12:59:00-04:00</updated>

		<published>2002-02-24T12:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4891#p4891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4891#p4891"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4891#p4891"><![CDATA[
that code is incorrect. wrong number of args declared for the proc, the arg definitions you have declared are wrong anyway (no channel is given in msgm) and invalid use of KICK (ie no channel given to kick from).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sun Feb 24, 2002 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-02-24T03:59:00-04:00</updated>

		<published>2002-02-24T03:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4885#p4885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4885#p4885"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4885#p4885"><![CDATA[
bind msgm - * do_msg_kick <br><br>proc do_msg_kick {nick hand chan} { <br>putserv "KICK $nick <img alt=":grin:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f601.svg">on't msg the bot!" <br>} <br><br>Sorry i hate them face things.. they are a waste of time and coding..<br><br>Kissmine<p>Statistics: Posted by Guest — Sun Feb 24, 2002 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-02-24T03:58:00-04:00</updated>

		<published>2002-02-24T03:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4884#p4884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4884#p4884"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4884#p4884"><![CDATA[
Try this<br><br>bind msgm - * do_msg_kick<br><br>proc do_msg_kick {nick hand chan} {<br> putserv "KICK $nick :razz:lz don't msg the bot!"<br>}<br><br>It is that easy.. you can edit to make the bot do more<p>Statistics: Posted by Guest — Sun Feb 24, 2002 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DrTongue]]></name></author>
		<updated>2002-02-17T09:29:00-04:00</updated>

		<published>2002-02-17T09:29:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4634#p4634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4634#p4634"/>
		<title type="html"><![CDATA[private message kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4634#p4634"><![CDATA[
Is there a .tcl that can make the bot kick and/or ban someone if they private message the bot?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=757">DrTongue</a> — Sun Feb 17, 2002 9:29 am</p><hr />
]]></content>
	</entry>
	</feed>
