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

	<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-08-17T15:42:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-17T15:42:45-04:00</updated>

		<published>2002-08-17T15:42:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9875#p9875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9875#p9875"/>
		<title type="html"><![CDATA[ohhh i love u guys :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9875#p9875"><![CDATA[
Thank you very much  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  *hugs*<br><br>I tought about DCC to, but i tought MSG would be faster? and more simpel (for me)...<br><br>Thank you very much (again)...<p>Statistics: Posted by Guest — Sat Aug 17, 2002 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-17T13:29:50-04:00</updated>

		<published>2002-08-17T13:29:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9868#p9868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9868#p9868"/>
		<title type="html"><![CDATA[add BAN with MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9868#p9868"><![CDATA[
ppslim is very right, but since i had nothing to do besides waiting for a slow ora8 install to finish, i wrote it for you. I will finish this script by making 3 more functions for listing/searching/unbanning and a user friendly interface (This is more for automatic processes like yours)<br><br>After i finished the script i will ofcourse distribute it.<br><div class="codebox"><p>Code: </p><pre><code># FILENAME: MSGBAN.TCL# VERSION:  1.0 # DATE:     8/17/2002# ----------------------------------------------------------------# REQUIREMENTS:#    channels.mod, core.mod# ----------------------------------------------------------------# AUTHOR:#    Mapherick^ApL &lt;mapherick at apl-productions.org&gt;## ----------------------------------------------------------------# USAGE:#    /MSG &lt;bot&gt; ADDBAN [parameters]#    Parameters:#       --help       show commandline help, overrides other #                    parameters#       --mask       hostmask to ban confirming *!*@*       #       --nick       nick to ban if no hostmask given#       --reason     reason of ban, optional#       --chan       restrict ban to a single channel#       --sticky     stick a ban (overrides +dynamicbans)#       --pass       optional extra password protection#                    specified in the config section#    Examples:#       /MSG Bot --mask guy!needs@ban.com --chan #MyChan --sticky#       /MSG Bot --nick Guy --pass 1337P455 --reason you lahmah!# ----------------------------------------------------------------# PURPOSE:#    To enable bans through the MSG command, mainly for automated#    IRC programs, like the spamdetector as described by Prab on#    http://forum.egghelp.org/viewtopic.php?t=2372# ----------------------------------------------------------------# LICENSING:#    This script is free to use and modify for personal use. If#    you wish to distribute your modified version, please contact #    the author.# ----------------------------------------------------------------# Configuration Of Script Follows:# --# $mb_flag_needed &amp; $mb_global_flag_needed#    Set the flags that are needed to place bans#--set mb_flag_needed "o|o"set mb_global_flag_needed "o"# --# $mb_ban_time#    Time that a ban stays active in minutes#    0 = permanent# --set mb_ban_time 0# --# $mb_default_banmsg#    Default message that shows up when a user#    is kick_banned and no custom reason was given# --set mb_default_banmsg "Ewww!"# --# $mb_password#    OPTIONAL!#    Adds extra security by requesting a second #    password on ban# --set mb_password "blah"bind msg $mb_flag_needed addban mb_addbanproc mb_addban {nick uhost hand args} {  global botnick mb_password mb_flag_needed mb_ban_time mb_default_banmsg mb_global_flag_needed  if {[lindex $args 0] == ""} {puthelp "NOTICE $nick :[mb_errmsg HELPME]" ; return 0}  foreach param [split [lindex $args 0] "--"] {    switch -- [string tolower [lindex $param 0]] {      mask      {set mb_banmask [strlwr [lindex $param 1]]}      nick      {set mb_bannick [string tolower [lindex $param 1]]}      pass      {set mb_pass [lindex $param 1]}      reason    {set mb_reason [string range $param 6 end]}      chan      {set mb_chan [string tolower [lindex $param 1]]}      sticky    {set mb_sticky sticky}      help      {puthelp "NOTICE $nick :[mb_errmsg HELPME]" ; return 0}    }   }    if ![info exists mb_pass] {set mb_pass ""}  if {![info exists mb_banmask]  &amp;&amp; ![info exists mb_bannick]} {    puthelp "NOTICE $nick :[mb_errmsg NOTODO]" ; return 0  } elseif {[info exists mb_banmask]  &amp;&amp; ![string match "*!*@*" $mb_banmask]} {    puthelp "NOTICE $nick :[mb_errmsg BADMSK]" ; return 0  } elseif {[info exists mb_chan]     &amp;&amp; ![onchan $botnick $mb_chan]} {    puthelp "NOTICE $nick :[mb_errmsg NOCHAN]" ; return 0  } elseif {[info exists mb_bannick]  &amp;&amp; $mb_bannick == $botnick} {    puthelp "NOTICE $nick :[mb_errmsg BANSLF]" ; return 0  } elseif {![info exists mb_chan]    &amp;&amp; ![matchattr $hand $mb_global_flag_needed]} {    putlog [mb_errmsg NOAUTH $nick] ; return 0  } elseif {[info exists mb_chan]     &amp;&amp; ![matchattr $hand $mb_flag_needed $mb_chan]} {    putlog [mb_errmsg NOAUTH $nick] ; return 0  } elseif {[info exists mb_password] &amp;&amp; $mb_password != $mb_pass} {    putlog [mb_errmsg BADPAS $nick] ; return 0  }  if {![info exists mb_banmask] &amp;&amp; [info exists mb_bannick]} {set mb_banmask "$mb_bannick!*@*"}  if ![info exists mb_sticky] {set mb_sticky none}  if ![info exists mb_reason] {set mb_reason $mb_default_banmsg}  if ![info exists mb_chan] {    newban $mb_banmask $hand $mb_reason $mb_ban_time $mb_sticky  } else {    newchanban $mb_chan $mb_banmask $hand $mb_reason $mb_ban_time $mb_sticky  }}proc mb_errmsg {args} {  global botnick  set errno [lindex $args 0]  switch $errno {    HELPME {      set msg "\002USAGE:\002 /MSG $botnick ADDBAN &lt;--nick Nick/--mask nick!ident@host.net&gt; \[--password password\]"      set msg "$msg \[--reason reason for ban\] \[--chan \#channel\] \[--sticky\] \[--help\]"      return $msg    }    NOCHAN {      set msg "\002ERROR:\002 I am not on that channel."      return $msg    }    BANSLF {      set msg "\002ERROR:\002 Unable to ban myself."      return $msg    }    NOAUTH {      set msg "MSGBAN.TCL: ERROR: User [lindex $args 1] has"      set msg "$msg insufficient rights to use this function"      return $msg    }    BADMSK {      set msg "\002ERROR:\002 Bad hostmask supplied, use format"      set msg "$msg nick!ident@address. Wildcards (*\/?) allowed."      return $msg    }    NOTODO {      set msg "\002ERROR:\002 Nothing to do!"      return $msg    }    BADPAS {      set msg "MSGBAN.TCL: ERROR: User [lindex $args 1] supplied"      set msg "$msg a bad password"      return $msg    }    default {      set msg "ERROR: Missing entry"      return $msg    }  }}putlog "MSGBAN.TCL v1.0 by Mapherick^ApL loaded..."</code></pre></div>Enjoy!<p>Statistics: Posted by Guest — Sat Aug 17, 2002 1:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-17T08:27:52-04:00</updated>

		<published>2002-08-17T08:27:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9860#p9860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9860#p9860"/>
		<title type="html"><![CDATA[add BAN with MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9860#p9860"><![CDATA[
A simple solution to this, is to create a client side script to interface with DCC chat, rather than code it into eggdrop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Aug 17, 2002 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-17T07:44:40-04:00</updated>

		<published>2002-08-17T07:44:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9857#p9857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9857#p9857"/>
		<title type="html"><![CDATA[add BAN with MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9857#p9857"><![CDATA[
I could really need some script help, please help.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>I have made my own irssi (<a href="http://irssi.org" class="postlink">http://irssi.org</a>) perl script, that detects spam.<br>When someone triggers it, i want to be able to send a<br><br>/msg Botnick ADDBAN *!*@.evil.spammer.com (reason:) SPAM<br><br>to my bot, to make it add the ban...and if possible, "password protection" too:<br><br>/msg Botnick PASSWORD eViLpAsSw0Rd ADDBAN *!*@evil.spammer.com reason:) SPAM<br><br>Anyone can help with with this?, please!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by Guest — Sat Aug 17, 2002 7:44 am</p><hr />
]]></content>
	</entry>
	</feed>
