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

	<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>2001-12-12T02:23:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-12T02:23:00-04:00</updated>

		<published>2001-12-12T02:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2650#p2650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2650#p2650"/>
		<title type="html"><![CDATA[IP Banning]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2650#p2650"><![CDATA[
I figured out how to do this. Here's how if anyone ever need anything similar.<br><br>bind pub m !ipban pub_ipban<br>bind ctcr - USERINFO pub_uinfo<br><br>proc pub_ipban {nick host handle channel args} {<br>set who [lindex $args 0]<br>putserv "PRIVMSG #Lamest :$nick has requested a ban on $who"<br>putserv "PRIVMSG $who :01USERINFO01"<br>}<br><br>### #Lamest is grimbot's chan, also default eggdrop chan ;D. ###<br><br>proc pub_uinfo {nick host handle channel args} {<br>set ipp [lindex $args 1]<br>set ipp2 [lindex $ipp 0]<br>putserv "PRIVMSG #Lamest :$args"<br>putserv "[exec echo !$ipp2 &gt;&gt; /www/cgi-bin/ipaccess]"<br>putserv "PRIVMSG #Lamest :I have banned $ipp2 from WAGD.com's CGI:IRC."<br>return 1<br>}<br><br>I'm sure there's probably a easier way to do it, but this works perfectly. Shoutz to the forum.<br><p>Statistics: Posted by Guest — Wed Dec 12, 2001 2:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-07T19:19:00-04:00</updated>

		<published>2001-12-07T19:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2522#p2522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2522#p2522"/>
		<title type="html"><![CDATA[IP Banning]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2522#p2522"><![CDATA[
I am writing a script for my bot to work with CGI:IRC, it runs a ipaccess file to deny ips, etc, and I got the bot to add to that file right, but the users also have a userinfo ctcp command, that outputs there real ip, so I need my bot to execute a ctcp userinfo on the person specified, get the output, parse out the IP address, and add it to the file, would also like to output the whole userinfo ctcp to the channel, and a message about it being banned. Appreciate any help.<p>Statistics: Posted by Guest — Fri Dec 07, 2001 7:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
