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

	<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>2015-03-23T11:52:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[AlexF]]></name></author>
		<updated>2014-03-11T11:12:33-04:00</updated>

		<published>2014-03-11T11:12:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102670#p102670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102670#p102670"/>
		<title type="html"><![CDATA[Join ban depending on gender]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102670#p102670"><![CDATA[
Thanks both.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12353">AlexF</a> — Tue Mar 11, 2014 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-03-23T11:52:35-04:00</updated>

		<published>2014-03-04T02:49:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102648#p102648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102648#p102648"/>
		<title type="html"><![CDATA[Join ban depending on gender]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102648#p102648"><![CDATA[
I've chosen a different path by having a simple <em class="text-italics">gender</em> flag cos having two channel modes (female and male) can screw things up. By default it's disabled (set to 0), so set it to 1 for Female or 2 for Male.<div class="codebox"><p>Code: </p><pre><code>setudef str genderbind join * * gender:banproc gender:ban {nick uhost handle chan} {if {[isbotnick $nick]} returnscan $uhost {%[^@]@%s} user hostset gender [channel get $chan gender]switch -- $gender {"1" {if {$user ne "Female"} {newchanban $chan "*!*@$host" Gender "Gender mismatch!" 60}}"2" {if {$user ne "Male"} {newchanban $chan "*!*@$host" Gender "Gender mismatch!" 60}}}}</code></pre></div>Edit: Fixed typo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Mar 04, 2014 2:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-03-03T23:33:12-04:00</updated>

		<published>2014-03-03T23:33:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102647#p102647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102647#p102647"/>
		<title type="html"><![CDATA[Re: Join ban depending on gender]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102647#p102647"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code># March 3, 2014# http://forum.egghelp.org/viewtopic.php?t=19637# Example:   .chanset #channel +female#            will cause bot to kick and ban *!Male@* , upon joining #channel# Example:   .chanset #channel +male#             will cause bot to kick and ban *!Female@* , upon joining #channel# Note:  Ban will expire after 60 minutes, and bot will remove the ban.#        Examine the script, and feel free to change ban time to whatever you like.# Note: You should edit the ban messages.# Reference:  http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#             bind join#             setudef#             newchanban# can all be found there.    :)# More reference : http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htmsetudef flag femalesetudef flag malebind join - "* *" ban_by_genderproc ban_by_gender {nick uhost handle chan} {global botnick        if {[channel get $chan female]} {                set user [string tolower [lindex [split $uhost @] 0] ]                if {$user == "male"} {                        newchanban $chan [maskhost $nick!$uhost 2] $botnick "Edit this comment" 60                  }           }        if {[channel get $chan male]} {                set user [string tolower [lindex [split $uhost @] 0] ]                 if {$user == "female"} {                        newchanban $chan [maskhost $nick!$uhost 2] $botnick "Edit this comment" 60                  }          } }</code></pre></div>Tested only briefly.  <br>You should test carefully.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 03, 2014 11:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AlexF]]></name></author>
		<updated>2014-03-03T19:32:24-04:00</updated>

		<published>2014-03-03T19:32:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102644#p102644</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102644#p102644"/>
		<title type="html"><![CDATA[Join ban depending on gender]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102644#p102644"><![CDATA[
Hi<br><br>Our website has a Flash IRC client where users select either Female or Male and then connect. <br><br>Their gender is then set as their username on IRC i.e. a Female appears as nickname!Female@hostname and a Male appears as nickname!Male@hostname.<br><br>I want to have a TCL to run on our existing bots for e.g. .chanset #Females +female or .chanset #Males +male.<br><br>In a channel with +female set then anyone who enters with the Male username will be *!*@hostname banned.<br><br>Please can someone help?<br><br>Thanks<br><br>AlexF<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12353">AlexF</a> — Mon Mar 03, 2014 7:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
