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

	<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>2017-01-27T09:29:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2015-08-25T10:34:14-04:00</updated>

		<published>2015-08-25T10:34:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104373#p104373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104373#p104373"/>
		<title type="html"><![CDATA[Ban kick for Realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104373#p104373"><![CDATA[
Great, glad you got it working.<br><br>Yes, I understood what you wanted, but because I used getchanhost, I needed to use the nickname, which is also returned by raw 311.<br><br>The code part..<div class="codebox"><p>Code: </p><pre><code>if {![string match -nocase "*znc*morrison*" $text]} {return}</code></pre></div>would ONLY match those nicknames/joins that use the realname, and not ban any other nickname. At least, that's how it _should_ work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>And<div class="codebox"><p>Code: </p><pre><code>  # change this numeric to the number for the nickname of offending user (currently set to 4 for example)  set nicktoban [lindex [split $text] 4]</code></pre></div>as stated, you would change the 4 to whatever numeric the nickname is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Tue Aug 25, 2015 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-08-24T03:05:55-04:00</updated>

		<published>2015-08-24T03:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104368#p104368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104368#p104368"/>
		<title type="html"><![CDATA[Ban kick for Realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104368#p104368"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>This is just a simple and untested method, but if you play around with it a bit you may make it even better.<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 check:gecosproc check:gecos {from keyword text} {  if {![string match -nocase "*znc*morrison*" $text]} {return}  # change this numeric to the number for the nickname of offending user (currently set to 4 for example)  set nicktoban [lindex [split $text] 4]  set hosttoban getchanhost $nicktoban  # Please read the tcl-commands.doc file inside ~/eggdrop/doc to understand newban, and either set a lifetime or allow global-ban-time  newban *!*$hosttoban $::botnick "This ZNC is unwanted in this channel."}</code></pre></div></div></blockquote>Solved, thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Aug 24, 2015 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-08-23T19:22:20-04:00</updated>

		<published>2015-08-23T19:22:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104367#p104367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104367#p104367"/>
		<title type="html"><![CDATA[Ban kick for Realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104367#p104367"><![CDATA[
<strong class="text-strong">Tcl error [check:gecos]: wrong # args: should be "set varName ?newValue?"</strong><br><br>In reality, the nickname does not match the name of the ZNC, this ZNC is used for others nicks that NOT contain the words "<a href="http://www.morrison.org" class="postlink">www.morrison.org</a>".<br><br>I need to ban and kick  any nick to use as realname: ZNC - <a href="http://www.morrison.org" class="postlink">www.morrison.org</a><br><br>How I can do to check the realname of all joining nick?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Aug 23, 2015 7:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Get_A_Fix]]></name></author>
		<updated>2017-01-27T09:29:23-04:00</updated>

		<published>2015-08-23T07:08:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104366#p104366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104366#p104366"/>
		<title type="html"><![CDATA[Ban kick for Realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104366#p104366"><![CDATA[
This is just a simple and untested method, but if you play around with it a bit you may make it even better.<br><div class="codebox"><p>Code: </p><pre><code>bind raw - 311 check:gecosproc check:gecos {from keyword text} {  if {![string match -nocase "*znc*morrison*" $text]} {return}  # change this numeric to the number for the nickname of offending user (currently set to 4 for example)  set nicktoban [lindex [split $text] 4]  set hosttoban [getchanhost $nicktoban]  # Please read the tcl-commands.doc file inside ~/eggdrop/doc to understand newban, and either set a lifetime or allow global-ban-time  newban *!*$hosttoban $::botnick "This ZNC is unwanted in this channel."}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6204">Get_A_Fix</a> — Sun Aug 23, 2015 7:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-08-23T05:56:08-04:00</updated>

		<published>2015-08-23T05:56:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104365#p104365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104365#p104365"/>
		<title type="html"><![CDATA[Ban kick for Realname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104365#p104365"><![CDATA[
They could help me with a TCL to ban and kick RealNames?<br>I know I use the RAW number 311 and  in the $ 6- would realname.<br><br>Example:<br>06:32  NiCK  Información sobre el nick Morrison:<br>06:32  NiCK  Estado: ACTIVO<br>06:32  NiCK  Realname: ZNC - <a href="http://www.morrison.org" class="postlink">www.morrison.org</a><br><br>Desire to ban and kick my channel, all nicks which are realname: ZNC - <a href="http://www.morrison.org" class="postlink">www.morrison.org</a><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Aug 23, 2015 5:56 am</p><hr />
]]></content>
	</entry>
	</feed>
