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

	<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>2003-04-08T17:13:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-08T17:13:42-04:00</updated>

		<published>2003-04-08T17:13:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18751#p18751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18751#p18751"/>
		<title type="html"><![CDATA[How would i go about doing this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18751#p18751"><![CDATA[
The problem is eggdrop doesn't know the nick's user@host unless they're in a channel together. Since this script kicks anybody who isn't a valid user, they won't ever be in a channel together long enough for you to type !add &lt;nick&gt;. The solution is to have the script send a /whois &lt;nick&gt; and catch the user@host from that reply. That's too much work for me right now, as I'm feeling rather lazy. So here is a script that lets you say !add nick!user@host instead. It only works for global owners, but you can change the flags in the bind command ("n") to be whatever you want.<br><br>I didn't test this at all so I don't even know if it will load. But I present to you, sheepkick:<br><div class="codebox"><p>Code: </p><pre><code>if {![info exists sheepkick_loaded]} {  set sheepkick_loaded baa  bind pub n !add add_sheep  bind join - * join_sheep}proc add_sheep {nick uhost hand chan text} {  set newhand [lindex [split $text !] 0]  if {[validuser $newhand]} {    chattr $newhand +E    setuser $newhand HOSTS [maskhost $text]    putserv "privmsg $chan :User '$newhand' already exists -- adding [maskhost $text]"    return 0  }  if {[catch {adduser $newhand [maskhost $text]}]} {    putserv "privmsg $chan :Error adding $newhand ($text) -- aborting"    return 0  }  chattr $newhand +E  return 0}proc join_sheep {nick uhost hand chan} {  if {![validuser $hand] || ![matchattr $hand E]} {    putkick $chan $nick "Invalid user -- baa"  }  return 0}putlog "Loaded: sheepkick by stdragon"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Apr 08, 2003 5:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-08T16:39:19-04:00</updated>

		<published>2003-04-08T16:39:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18745#p18745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18745#p18745"/>
		<title type="html"><![CDATA[How would i go about doing this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18745#p18745"><![CDATA[
I want to setup a chan where i can have a eggdrop running...where i can say !add &lt;nick&gt; and it add the nick's host to a userbase...and when someone joins the channel if the person joining isnt on the userbase then there either kicked or banned.<br><br>HOw would i do this??<br><br>Trucido<p>Statistics: Posted by Guest — Tue Apr 08, 2003 4:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
