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

	<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>2005-01-17T04:49:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-17T04:49:57-04:00</updated>

		<published>2005-01-17T04:49:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45478#p45478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45478#p45478"/>
		<title type="html"><![CDATA[It's possible to modify noversion script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45478#p45478"><![CDATA[
No problemo! A sinch for me if you'd say.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jan 17, 2005 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[saerd]]></name></author>
		<updated>2005-01-17T04:32:11-04:00</updated>

		<published>2005-01-17T04:32:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45477#p45477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45477#p45477"/>
		<title type="html"><![CDATA[It's possible to modify noversion script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45477#p45477"><![CDATA[
Many Thanks!!! it works 100%!!<br>Thanks to you and this wonderful community!!<br>CIAO GRAZIE!!!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4548">saerd</a> — Mon Jan 17, 2005 4:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-16T22:35:40-04:00</updated>

		<published>2005-01-16T22:35:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45471#p45471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45471#p45471"/>
		<title type="html"><![CDATA[It's possible to modify noversion script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45471#p45471"><![CDATA[
You can check if string matches a certain pattern.<br>For example:<br><br>if {[string match -nocase "*XXX-*" $nick]} { return 0 }<br><br>So if the nicks are XXX-?? then the script should be:<br><div class="codebox"><p>Code: </p><pre><code>### Settings ##### Punish the people who have one of the following words in the ctcp-version reply.set nv_versions {"showdown" "microsoft chat"}## Ask ctcp-version if user joins one of these channels.# Note: Set this to "" to enable punishing on all channels.set nv_chans "#lamest #botcentral"## [0/1] If user has a lame IRC-client/script then punish him/her only on $nv_chans?# Note: If this is set to 0 then the bot punish user on all channels where the bot and the user are.set nv_onlynvchans 1## What is the reason for the punishment?set nv_reason "Lame IRC-client/script"## [0/1] Kick the user?set nv_kick 1## [0/1] Give the user a warning?set nv_givewarning 1## Give what kind of warning?set nv_warning "Don't use lame scripts and/or clients."## [0/1] Ban the user?set nv_ban 0## Ban for how long time (min)?set nv_bantime 10## [0/1] Ignore the user?set nv_ignore 0## Ignore for how long time (min)?set nv_ignoretime 10## What users can use the nvcheck command?set nv_chkflag "m"## Don't ask ctcp-version from the users with the following global flags.set nv_globflags "m n o b"## Don't ask ctcp-version from the users with the following channel flags.set nv_chanflags "m n o"###### You don't need to edit below this ######### Misc Things ###set nv_ver "1.05"### Bindings ###bind join - * join:nv_askverbind ctcr - VERSION ctcr:nv_ctcpbind notc - * notc:nv_noticebind dcc $nv_chkflag nvcheck dcc:nvcheck### Main Procs ###proc join:nv_askver {nick uhost hand chan} {global botnick nv_chans nv_globflags nv_chanflags   if {[string match -nocase "XXX-??" $nick]} { return 0 }   if {[string tolower $nick] != [string tolower $botnick]} {      foreach globflag $nv_globflags { if {[matchattr $hand $globflag]} { return 1 } }      foreach chanflag $nv_chanflags { if {[matchattr $hand |$chanflag $chan]} { return 1 } }      if {($nv_chans == "") || ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] != -1)} {         putserv "PRIVMSG $nick :\001VERSION\001"      }   }}proc ctcr:nv_ctcp {nick uhost hand dest key arg} {global botnick nv_versions nv_globflags nv_chanflags   if {[string match -nocase "XXX-??" $nick]} { return 0 }   if {[string tolower $nick] != [string tolower $botnick]} {      foreach version $nv_versions {         if {[string match "*[string tolower $version]*" [string tolower $arg]]} {            nv_punish $nick $uhost         }      }   }}proc notc:nv_notice {nick uhost hand text {dest ""}} {global botnick nv_versions nv_globflags nv_chanflags   if {$dest == ""} { set dest $botnick }   if {[string match -nocase "XXX-??" $nick]} { return 0 }   if {([string tolower $nick] != [string tolower $botnick]) &amp;&amp; ([string match "*version*" [lindex [string tolower $text] 0]])} {      foreach version $nv_versions {         if {[string match "*[string tolower $version]*" [lrange [string tolower $text] 1 end]]} {            nv_punish $nick $uhost         }      }   }}proc dcc:nvcheck {hand idx arg} {set target [lindex [split $arg] 0]   putcmdlog "#$hand# nvcheck $arg"   if {$target == ""} {      putidx $idx "Usage: .nvcheck &lt;nick|channel&gt;"   } else {      putidx $idx "Asking ctcp-version from $target..."      putserv "PRIVMSG $target :\001VERSION\001"   }}### Other Procs ###proc nv_punish {nick uhost} {global botnick nv_chans nv_onlynvchans nv_reason nv_kick nv_givewarning nv_warning nv_ban nv_bantime nv_ignore nv_ignoretimeset hostmask "*!*[string range $uhost [string first "@" $uhost] end]"set dowhat ""   if {[string tolower $nick] != [string tolower $botnick]} {      if {$nv_givewarning} {         lappend dowhat "giving warning"         putserv "NOTICE $nick :$nv_warning"      }      if {($nv_ignore) &amp;&amp; (![isignore $hostmask])} {         lappend dowhat "ignoring"         newignore $hostmask $botnick $nv_reason $nv_ignoretime      }      foreach chan [channels] {         if {($nv_onlynvchans) &amp;&amp; ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] == -1)} { continue }         if {($nv_ban) &amp;&amp; (![isban $hostmask $chan]) &amp;&amp; ([onchan $nick $chan])} {            if {![string match "*banning*" $dowhat]} { lappend dowhat "banning" }            newchanban $chan $hostmask $botnick $nv_reason $nv_bantime         }         if {($nv_kick) &amp;&amp; ([botisop $chan]) &amp;&amp; ([onchan $nick $chan])} {            if {![string match "*kicking*" $dowhat]} { lappend dowhat "kicking" }            putserv "KICK $chan $nick :$nv_reason"         }      }      if {$dowhat != ""} {         set dowhat "-- [join $dowhat " &amp; "]"      }      putlog "noversions: $nick ($uhost) is using lame IRC-client/script $dowhat"   }}### End ###putlog "TCL loaded: noversions.tcl v$nv_ver by Sup &lt;temex@iki.fi&gt;</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jan 16, 2005 10:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[saerd]]></name></author>
		<updated>2005-01-16T21:29:46-04:00</updated>

		<published>2005-01-16T21:29:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45464#p45464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45464#p45464"/>
		<title type="html"><![CDATA[It's possible to modify noversion script ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45464#p45464"><![CDATA[
hi all!!<br>I need to modify this script (noversion 1.05 tcl found in egghelp.org)<br><br>Here the code...<br><div class="codebox"><p>Code: </p><pre><code># noversions.tcl v1.05 [1 August 2000]# Copyright (C) 1999-2000 Teemu Hjelt &lt;temex@iki.fi&gt;## Latest version can be found from http://www.iki.fi/temex/eggdrop/# # If you have any suggestions, questions or you want to report # bugs, please feel free to send me email to temex@iki.fi## This script makes your bot ask ctcp-version from the people  # who join a channel where the bot is. The bot punishs the # user if his/her ctcp-version reply matches one in the list.## Current DCC Commands:#    .nvcheck &lt;nick|channel&gt;## Tested on eggdrop1.4.4 with TCL 7.6## Version history:# v1.00 - The very first version!# v1.01 - Now the bot doesn't ask ctcp-version #         from itself when it joins a channel.#         Also added the nvcheck command.# v1.02 - Fixed little bug in the nv_punish proc. # v1.03 - Fixed few little things.# v1.04 - Fixed little bug in nv_punish proc.# v1.05 - Fixed again little bug in the nv_punish proc. User can now be given a#         warning when (s)he has a matching ctcp-version reply. Should work now#         also with 1.5.x bots. Changed the name of this script to noversions.tcl### Settings ##### Punish the people who have one of the following words in the ctcp-version reply.set nv_versions {"showdown" "microsoft chat"} ## Ask ctcp-version if user joins one of these channels.# Note: Set this to "" to enable punishing on all channels.set nv_chans "#lamest #botcentral"## [0/1] If user has a lame IRC-client/script then punish him/her only on $nv_chans?# Note: If this is set to 0 then the bot punish user on all channels where the bot and the user are.set nv_onlynvchans 1## What is the reason for the punishment?set nv_reason "Lame IRC-client/script"## [0/1] Kick the user?set nv_kick 1## [0/1] Give the user a warning?set nv_givewarning 1## Give what kind of warning?set nv_warning "Don't use lame scripts and/or clients."## [0/1] Ban the user?set nv_ban 0## Ban for how long time (min)?set nv_bantime 10## [0/1] Ignore the user?set nv_ignore 0## Ignore for how long time (min)?set nv_ignoretime 10## What users can use the nvcheck command?set nv_chkflag "m"## Don't ask ctcp-version from the users with the following global flags. set nv_globflags "m n o b"## Don't ask ctcp-version from the users with the following channel flags.set nv_chanflags "m n o"###### You don't need to edit below this ######### Misc Things ###set nv_ver "1.05"### Bindings ###bind join - * join:nv_askverbind ctcr - VERSION ctcr:nv_ctcpbind notc - * notc:nv_noticebind dcc $nv_chkflag nvcheck dcc:nvcheck### Main Procs ###proc join:nv_askver {nick uhost hand chan} {global botnick nv_chans nv_globflags nv_chanflagsif {[string tolower $nick] != [string tolower $botnick]} {foreach globflag $nv_globflags { if {[matchattr $hand $globflag]} { return 1 } }foreach chanflag $nv_chanflags { if {[matchattr $hand |$chanflag $chan]} { return 1 } }if {($nv_chans == "") || ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] != -1)} {putserv "PRIVMSG $nick :\001VERSION\001"}}}proc ctcr:nv_ctcp {nick uhost hand dest key arg} {global botnick nv_versions nv_globflags nv_chanflagsif {[string tolower $nick] != [string tolower $botnick]} {foreach version $nv_versions {if {[string match "*[string tolower $version]*" [string tolower $arg]]} { nv_punish $nick $uhost }}}}proc notc:nv_notice {nick uhost hand text {dest ""}} {global botnick nv_versions nv_globflags nv_chanflagsif {$dest == ""} { set dest $botnick }if {([string tolower $nick] != [string tolower $botnick]) &amp;&amp; ([string match "*version*" [lindex [string tolower $text] 0]])} {foreach version $nv_versions {if {[string match "*[string tolower $version]*" [lrange [string tolower $text] 1 end]]} { nv_punish $nick $uhost }}}}proc dcc:nvcheck {hand idx arg} {set target [lindex [split $arg] 0]putcmdlog "#$hand# nvcheck $arg"if {$target == ""} {putidx $idx "Usage: .nvcheck &lt;nick|channel&gt;"} else {putidx $idx "Asking ctcp-version from $target..."putserv "PRIVMSG $target :\001VERSION\001"}}### Other Procs ###proc nv_punish {nick uhost} {global botnick nv_chans nv_onlynvchans nv_reason nv_kick nv_givewarning nv_warning nv_ban nv_bantime nv_ignore nv_ignoretimeset hostmask "*!*[string range $uhost [string first "@" $uhost] end]"set dowhat ""if {[string tolower $nick] != [string tolower $botnick]} {if {$nv_givewarning} {lappend dowhat "giving warning"putserv "NOTICE $nick :$nv_warning" }if {($nv_ignore) &amp;&amp; (![isignore $hostmask])} { lappend dowhat "ignoring"newignore $hostmask $botnick $nv_reason $nv_ignoretime }foreach chan [channels] {if {($nv_onlynvchans) &amp;&amp; ([lsearch -exact [split [string tolower $nv_chans]] [string tolower $chan]] == -1)} { continue }if {($nv_ban) &amp;&amp; (![isban $hostmask $chan]) &amp;&amp; ([onchan $nick $chan])} {if {![string match "*banning*" $dowhat]} { lappend dowhat "banning" }newchanban $chan $hostmask $botnick $nv_reason $nv_bantime }if {($nv_kick) &amp;&amp; ([botisop $chan]) &amp;&amp; ([onchan $nick $chan])} { if {![string match "*kicking*" $dowhat]} { lappend dowhat "kicking" }putserv "KICK $chan $nick :$nv_reason" }}if {$dowhat != ""} {set dowhat "-- [join $dowhat " &amp; "]"}putlog "noversions: $nick ($uhost) is using lame IRC-client/script $dowhat"}}### End ###putlog "TCL loaded: noversions.tcl v$nv_ver by Sup &lt;temex@iki.fi&gt;"</code></pre></div>I Would that this script do non analyze all user with a nick begin like xxx<br>so:<br>xxx-01 xxx-02 ...<br><br>it's possible to avoid that this script analyze them ?<br><br>THANKS!!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4548">saerd</a> — Sun Jan 16, 2005 9:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
