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

	<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-07-20T13:40:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dreamwatcher]]></name></author>
		<updated>2017-07-20T13:40:33-04:00</updated>

		<published>2017-07-20T13:40:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106377#p106377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106377#p106377"/>
		<title type="html"><![CDATA[Hope to get a reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106377#p106377"><![CDATA[
Well supposing with this script lets modify it.<br><br>The eggdrop bot logs each kick and ban in channel 1. Channel 1 is the main channel. Channel 2 is the help channel for channel 1. The user came to channel 2 but the person who kicked is not there. As an operator i want to help.<br><br>So i type !searchban nick<br>the bot replies.<br><br>Searching for ban report on $nick in channel 1 ...<br>Ban Found on $nick with ban mask $banmask<br>Reason: $kickreason Placed By: $kick-maker Date &amp; Time: $date $time<br><br>Please help me on this. would be very greatful. should reply on help channel on mains only. i'll add the colours myself. thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12702">dreamwatcher</a> — Thu Jul 20, 2017 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4s]]></name></author>
		<updated>2017-05-02T11:08:08-04:00</updated>

		<published>2017-05-02T11:08:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106234#p106234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106234#p106234"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106234#p106234"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind kick - * logitbind mode - "* +b" logitproc logit {nick uhost hand chan arg1 arg2} {       if {$arg1 == "+b"} {                set line "&lt;pre&gt;BAN: Set by $nick ($hand - $uhost) on channel $chan against $arg2 &lt;/pre&gt;"       } else {                set line "&lt;pre&gt;KICK: Set by $nick ($hand - $uhost) on channel $chan against $arg1 for $arg2 &lt;/pre&gt;"       }       set kickbanlog [open /path/to/my/kickban.log a]       puts $kickbanlog $line       catch {close $kickbanlog}}#antiwordwrap#########################################################################################################</code></pre></div>Should work, not tested..Obviously doesn't have the html header (which probably won't be necessary anyway.) That gives you the basics, modify to suit.</div></blockquote>Hello to everyone!<br><br>I would like to ask someone to modify this scripts for me.<br>I would like to store the "-b" actions too. It is good to know who removed the ban and when.<br><br>Thanks for your help! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12672">m4s</a> — Tue May 02, 2017 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tisho]]></name></author>
		<updated>2007-03-06T05:21:48-04:00</updated>

		<published>2007-03-06T05:21:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71031#p71031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71031#p71031"/>
		<title type="html"><![CDATA[Thanks to rosc2112 for the idea !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71031#p71031"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># ============================================================================# KickBanLog.tcl v1.0 (12/Feb/2007) by Yxaaaaaaa &amp; Tisho &amp; Thanks  to rosc2112 # -------------- COPYRIGHT C.LEONHARDT 2007 --------------------# Original concept by rosc2112 (C.LEONHARDT)# http://forum.egghelp.org/viewtopic.php?p=68656#68656## Description:# This tcl logs every Kick &amp; Ban in chosen channel, and generates html file)## Yxaaaaaaa UniBG @ #EggFAQ ( http://www.egghlep-bg.com )# Tisho UniBG @ #DJ ( http://DjTisho.com )# (Please e-mail us your suggestions and bugs - djtisho|at|gmail.com# ============================================================================# Starting configuration ...# Channels (separated by space)set kbechans "#channel1 #channel2"# Main log dir (full path to your logs dir, e.g. /home/user/public_html/log )set kbepath "/home/user/public_html/log"# Setting the HTTP charset parameter ( http://www.w3.org/International/O-HTTP-charset )set charset "windows-1251"# Bindsbind kick - * e:logbind mode - "* +b" e:log# Start tcl script - DO NOT change anything below !proc e:createpage c {    if {![string match *$c* $::kbechans]} {return}      set efile "$::kbepath/$c/index.html"      set fid [open $efile w]    puts $fid "&lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=$::charset\" /&gt;\n    &lt;body text=\"#FFFFFF\" bgcolor=\"#000000\" topmargin=\"0\" leftmargin=\"0\"&gt;\n    &lt;p align=\"center\"&gt;&lt;u&gt;&lt;font size=\"5\" face=\"Verdana\"&gt;Channel #$c Kicks &amp; Bans log&lt;/font&gt;&lt;/u&gt;&lt;/p&gt;\n"    close $fid    }    proc e:log {n u h c w t} {      set c [string map [list "#" {}] [string tolower $c]]    if {![file isdir $::kbepath/$c]} { catch {[file mkdir $::kbepath/$c]}}      set efile "$::kbepath/$c/index.html"    if {![file exists $efile]} { e:createpage $c}    if {$w == "+b"} { set line "&lt;pre&gt;&lt;font color='green'&gt;BAN: [ctime [unixtime]] Set by $n ($h - $u) on channel #$c against $t&lt;/font&gt;&lt;/pre&gt;"    } else {  set line "&lt;pre&gt;&lt;font color='red'&gt;&lt;u&gt;KICK:&lt;/u&gt; [ctime [unixtime]] Set by $n ($h - $u) on channel #$c against $w for &lt;u&gt;$t&lt;/u&gt; &lt;/font&gt;&lt;/pre&gt;"     }      set kickbanlog [open $efile a]     puts $kickbanlog $line   catch {close $kickbanlog}     }# putlogputlog "KickBanLog.tcl v1.0 by &lt;\002Yxaaaaaaa &amp; Tisho &amp; rosc2112\002&gt; Loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8709">tisho</a> — Tue Mar 06, 2007 5:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-03T18:39:48-04:00</updated>

		<published>2006-12-03T18:39:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68687#p68687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68687#p68687"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68687#p68687"><![CDATA[
It should log all channels, hence the * in the bind (read the documentation for bind)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Dec 03, 2006 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hellrazor]]></name></author>
		<updated>2006-12-03T18:03:07-04:00</updated>

		<published>2006-12-03T18:03:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68685#p68685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68685#p68685"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68685#p68685"><![CDATA[
Everything works okay .. but there is one more thing, it logs bans only from one channel. Is there anyway to log from 2 or more channels? Btw, thanks a lot for the tcl. Now we can control much better the spam/invite from one ip/host.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8447">hellrazor</a> — Sun Dec 03, 2006 6:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-03T16:04:46-04:00</updated>

		<published>2006-12-03T16:04:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68681#p68681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68681#p68681"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68681#p68681"><![CDATA[
Sure, just add [ctime [unixtime]] into the 'set line' parts:<br><br>set line "&lt;pre&gt;BAN: [ctime [unixtime]] and so forth"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Dec 03, 2006 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hellrazor]]></name></author>
		<updated>2006-12-03T07:17:05-04:00</updated>

		<published>2006-12-03T07:17:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68668#p68668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68668#p68668"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68668#p68668"><![CDATA[
Thanks, it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> One more thing, can it log the date and the time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8447">hellrazor</a> — Sun Dec 03, 2006 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-03T01:59:15-04:00</updated>

		<published>2006-12-03T01:59:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68656#p68656</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68656#p68656"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68656#p68656"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind kick - * logitbind mode - "* +b" logitproc logit {nick uhost hand chan arg1 arg2} {       if {$arg1 == "+b"} {                set line "&lt;pre&gt;BAN: Set by $nick ($hand - $uhost) on channel $chan against $arg2 &lt;/pre&gt;"       } else {                set line "&lt;pre&gt;KICK: Set by $nick ($hand - $uhost) on channel $chan against $arg1 for $arg2 &lt;/pre&gt;"       }       set kickbanlog [open /path/to/my/kickban.log a]       puts $kickbanlog $line       catch {close $kickbanlog}}#antiwordwrap#########################################################################################################</code></pre></div>Should work, not tested..Obviously doesn't have the html header (which probably won't be necessary anyway.) That gives you the basics, modify to suit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Dec 03, 2006 1:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hellrazor]]></name></author>
		<updated>2006-11-30T22:01:36-04:00</updated>

		<published>2006-11-30T22:01:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68589#p68589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68589#p68589"/>
		<title type="html"><![CDATA[Ban + html generating]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68589#p68589"><![CDATA[
Hello there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> First of all, I am not very good at tcl coding. I need tcl like .. hmm KillLog, but instead of loggin kills, to log the kicks and bans. I mean - when someone get kicked from my channel, the bot should log the nick who was kicked, the nick who kicked (and the hosts of both) and the reason for kicks. After that, it should generate a webpage with .. with the same information. If there is .. someone who could write suck a think (because i can't) please, share your knowledge with me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8447">hellrazor</a> — Thu Nov 30, 2006 10:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
