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

	<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-01-30T06:04:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-30T06:04:00-04:00</updated>

		<published>2002-01-30T06:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4187#p4187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4187#p4187"/>
		<title type="html"><![CDATA[CGI:IRC Control Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4187#p4187"><![CDATA[
yea, noticed i left a couple wagd.com's in there they can be removed, and won't be in the one i'm submitting now.<p>Statistics: Posted by Guest — Wed Jan 30, 2002 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-30T06:01:00-04:00</updated>

		<published>2002-01-30T06:01:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4186#p4186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4186#p4186"/>
		<title type="html"><![CDATA[CGI:IRC Control Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4186#p4186"><![CDATA[
If anyone uses the CGI:IRC script for a chat client on there page, it's nice available at <a href="http://cgiirc.sourceforge.net" class="postlink">http://cgiirc.sourceforge.net</a>, this is a script to control bans, kills, etc of the users, given the eggdrop is running on the same server as cgi:irc, could be modified to make a new ipaccess and upload it probably. Here goes some code. Putting it on here before I submit it, enjoy.<br><br>### Script to control CGI:IRC clients ###<br>### Created by <a href="mailto:sirgrim@WAGD.com">sirgrim@WAGD.com</a> ###<br>putlog "CGI:IRC Client Control Loaded...."<br><br>### Output Channel. ###<br>set chann "#Lamest"<br><br>### Location of ipaccess file (usually cgi-bin) ###<br>set location "/www/cgi-bin/ipaccess"<br><br>### The CTCP kill password ###<br>set killpass "pass here"<br><br>bind pub m !ipban pub_ipban<br>bind pub m !iban pub_iban<br>bind ctcr - USERINFO pub_uinfo<br>bind pub m !kill pub_kill  <br>bind pub m !ophelp pub_ophelp<br><br>proc pub_ophelp {nick host handle channel args} {<br>set who [lindex $args 0]<br>putserv "PRIVMSG $nick :Thanks for interest in my operator help section."<br>putserv "PRIVMSG $nick :There are 3 basic commands for use with the WAGD.com CGI:IRC Client. These are: !iban !ipban !kill."<br>putserv "PRIVMSG $nick :!iban is simply used as !iban 10.0.*.*, replace ip numbers as needed, this bans entire ip classes from the CGI:IRC."<br>putserv "PRIVMSG $nick :!ipban is even easier, you just type !ipban username, and grimbot will find there ip, and ban it from the CGI:IRC Client."<br>putserv "PRIVMSG $nick :!kill is used to kick people off the chat completely. Simply type !kill username, and I will kill them for you"<br>puthelp "PRIVMSG $nick :If you have any suggestions for this script, please e-mail <a href="mailto:sirgrim@WAGD.com">sirgrim@WAGD.com</a>"<br>return 1<br>}<br><br>proc pub_kill {nick host handle channel args} {<br>global killpass location chann<br>set who [lindex $args 0]<br>putserv "PRIVMSG $who :01KILL $killpass requested by $nick01"<br>return 1<br>}<br><br>proc pub_iban {nick host handle channel args} {<br>global killpass location chann<br>set who [lindex $args 0]<br>if {$who == "*.*.*.*"} {<br>putserv "PRIVMSG $channel :$nick, i'm not that stupid, you're lucky i don't ban you!"<br>return 1<br>}<br>putserv "PRIVMSG $chann :$nick has requested a ban on $who."<br>putserv "[exec echo !$who &gt;&gt; $location]"<br>putserv "PRIVMSG $chann :I have banned $who from WAGD.com's CGI:IRC"<br>return 1<br>}<br><br>proc pub_uinfo {nick host handle channel args} {<br>global killpass location chann<br>set ipp [lindex $args 1]<br>set ipp2 [lindex $ipp 0]<br>putserv "PRIVMSG $chann :$args"<br>putserv "[exec echo !$ipp2 &gt;&gt; $location]"<br>putserv "PRIVMSG $chann :I have banned $ipp2 from WAGD.com's CGI:IRC."<br>return 1<br>}<br> <br>proc pub_ipban {nick host handle channel args} {<br>global killpass location chann<br>set who [lindex $args 0]<br>putserv "PRIVMSG $chann :$nick has requested a ban on $who"<br>putserv "PRIVMSG $who :01USERINFO01"<br>}<br><p>Statistics: Posted by Guest — Wed Jan 30, 2002 6:01 am</p><hr />
]]></content>
	</entry>
	</feed>
