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

	<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>2008-03-24T16:46:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2008-03-24T16:46:16-04:00</updated>

		<published>2008-03-24T16:46:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82019#p82019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82019#p82019"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82019#p82019"><![CDATA[
<blockquote class="uncited"><div>Anyone know of a fix for users with nicknames that are longer than 9 characters?<br><br>[00:35:41] &lt;@dohboy&gt; .vab add infamous_cow<br>[00:35:43] -VoiceR- Adding infamous_cow(infamous_cow): Success<br>[00:35:43] -VoiceR- Setting default flags for infamous_cow(infamous_cow): *<br>[00:35:44] -VoiceR- Flags for infamous_cow(infamous_cow) are now: *<br><br>[00:35:55] &lt;@dohboy&gt; .vab add infamous_<br>[00:35:58] -VoiceR- Flags for infamous_(infamous_) are now: hp|V<br><br>In the config file I set the nick length to 26, and I don't think I have access to recompile the bot to change the NICKMAX or HANDLEN settings.  Anyone know of a workaround for that?</div></blockquote>In sources of your bot open file src/eggdrop.h and find there a string <div class="codebox"><p>Code: </p><pre><code>#define HANDLEN 9   /* valid values 9-&gt;NICKMAX  */</code></pre></div> Change it to <div class="codebox"><p>Code: </p><pre><code>#define HANDLEN 32   /* valid values 9-&gt;NICKMAX  */</code></pre></div> and recompile your bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Mon Mar 24, 2008 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dohboy2]]></name></author>
		<updated>2008-03-24T01:32:20-04:00</updated>

		<published>2008-03-24T01:32:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82006#p82006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82006#p82006"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82006#p82006"><![CDATA[
Anyone know of a fix for users with nicknames that are longer than 9 characters?<br><br>[00:35:41] &lt;@dohboy&gt; .vab add infamous_cow<br>[00:35:43] -VoiceR- Adding infamous_cow(infamous_cow): Success<br>[00:35:43] -VoiceR- Setting default flags for infamous_cow(infamous_cow): *<br>[00:35:44] -VoiceR- Flags for infamous_cow(infamous_cow) are now: *<br><br>[00:35:55] &lt;@dohboy&gt; .vab add infamous_<br>[00:35:58] -VoiceR- Flags for infamous_(infamous_) are now: hp|V<br><br>In the config file I set the nick length to 26, and I don't think I have access to recompile the bot to change the NICKMAX or HANDLEN settings.  Anyone know of a workaround for that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9811">dohboy2</a> — Mon Mar 24, 2008 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rob]]></name></author>
		<updated>2006-01-13T21:22:30-04:00</updated>

		<published>2006-01-13T21:22:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59386#p59386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59386#p59386"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59386#p59386"><![CDATA[
just gave it a go and works fine, brilliant stuff.<br><br>cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1673">Rob</a> — Fri Jan 13, 2006 9:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-01T20:14:01-04:00</updated>

		<published>2006-01-01T20:14:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58948#p58948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58948#p58948"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58948#p58948"><![CDATA[
spock is always right<br><br>Rob, add <em class="text-italics">return 1</em> to proc foo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jan 01, 2006 8:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2006-01-01T19:52:37-04:00</updated>

		<published>2006-01-01T19:52:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58947#p58947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58947#p58947"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58947#p58947"><![CDATA[
!vabon returns 1 so it gets logged (msg on partyline)<br>!vaboff -&gt; 0 will not get logged (no msg on partyline)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Jan 01, 2006 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-01T18:02:42-04:00</updated>

		<published>2006-01-01T18:02:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58938#p58938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58938#p58938"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58938#p58938"><![CDATA[
then you must have missed the bind for !vaboff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jan 01, 2006 6:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rob]]></name></author>
		<updated>2006-01-01T06:58:07-04:00</updated>

		<published>2006-01-01T06:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58914#p58914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58914#p58914"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58914#p58914"><![CDATA[
hi thanks for the help and all works fine until we go to use !vaboff which does nothing, all other used commands inc !vabon show up in the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1673">Rob</a> — Sun Jan 01, 2006 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-01T06:22:19-04:00</updated>

		<published>2006-01-01T06:22:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58913#p58913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58913#p58913"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58913#p58913"><![CDATA[
I contradict myself with that but oh well, I promised the guy I'll take a look...<div class="codebox"><p>Code: </p><pre><code>set vabison 1bind pub o !vabon foobind pub o !vaboff fooproc foo {args} {   if {$::lastbind == "!vabon"} {set ::vabison 1} {set ::vabison 0}}</code></pre></div>and in VAB_join proc insert the following:<div class="codebox"><p>Code: </p><pre><code>if !$::vabison return</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jan 01, 2006 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rob]]></name></author>
		<updated>2005-12-31T14:54:25-04:00</updated>

		<published>2005-12-31T14:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58882#p58882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58882#p58882"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58882#p58882"><![CDATA[
Sorry here is the script complete.<br><div class="codebox"><p>Code: </p><pre><code>#         Script : VoiceAllBut v1.02 by David Proper (Dr. Nibble [DrN])#                  Copyright 2002 Radical Computer Systems#                             All Rights Reserved##       Testing#      Platforms : Linux 2.2.16   TCL v8.3 (Patch level 8.3.1)#                  Eggdrop v1.6.2#                  Eggdrop v1.6.6#            And : SunOS 5.8      TCL v8.3#                  Eggdrop v1.5.4##    Description : VoiceAllBut is an auto-voice script with an exceptions#                  list. You can add/remove people from the no-voice list#                  via a channel command. VAB will voice all users who #                  join except users on the no-voice list.#                  Good for botchannels who are +m and want the talker#                  bots to just shut up. :)##      Requested : UTAKER@DALnet of BotCentral.net and #BotCentral##        History : 02/10/2002 - First Release#                  03/25/2002 - v1.01#                              o Modified sitemask definition to make a#                                more normal mask. (Instead of full domain)#                              o Will now de-voice user if they are voiced#                                when added to the novoice list and voice#                                them when removed. (Suggested by UTAKER)#                  06/21/2002 - v1.02#                              o Added subst command to see if that'd help#                                with nicks using | and [censored].#                              o Added list of channels to voice on.#                                (Requested by UTAKER@DALnet)#                              o Added public commands to add/del/list VAB#                                channel list.#                              o Saves channel list to datafile. Will only#                                use VAB(chans) list if no datafile is found###   Future Plans : Fix Bugs. :)#                 o Only active on defined channels## Author Contact :     Email - DProper@stx.rr.com#                  Home Page - http://home.stx.rr.com/dproper#       Homepage Direct Link - http://www.chaotix.net:3000/~dproper#                        IRC - Primary Nick: DrN#                     UseNet - alt.irc.bots.eggdrop# Support Channels: #RCS @UnderNet.Org#                   #RCS @DALnet#                   #RCS @EFnet#                   #RCS @GalaxyNet#                   #RCS @ChatGalaxy#                   #RCS @Choatix Addiction##                Current contact information can be located at:#                 http://www.chaotix.net:3000/rcs/contact.html## New TCL releases are sent to the following sites as soon as they're released:## FTP Site                   | Directory                     # ---------------------------+-------------------------------# ftp.chaotix.net            | /pub/RCS# ftp.eggheads.org           | Various# drn.realmweb.org           | /drn## Chaotix.Net has returned. Mailing list and web site back.##   Radical Computer Systems - http://www.chaotix.net:3000/rcs/# To subscribe to the RCS mailing list: mail majordomo@chaotix.net and in#  BODY of message, type  subscribe rcs-list##  Feel free to Email me any suggestions/bug reports/etc.# # You are free to use this TCL/script as long as:#  1) You don't remove or change author credit#  2) You don't release it in modified form. (Only the original)# # If you have a "too cool" modification, send it to me and it'll be# included in the official release. (With your credit)## Commands Added:#  Where     F CMD          F CMD            F CMD           F CMD#  -------   - ----------   - ------------   - -----------   - ----------#  Public:   o vab          o vablist        o vabadd        o vabdel#     MSG:   N/A#     DCC:   N/A## Public Matching: N/A## This is the user-definable flag to use to indicate a user on the no-voice listset VAB(flag) V# Default flags to give when adding a new userset VAB(default-flags) "+h-p"# User access required to modify/list no-voice list.set VAB(access) "o|o"# Define this as the channels you want to protect. * for allset VAB(chans) "#wales"# Define this as the file to store dynamic list of channels to voice onset VAB(datafile) "~/vablist.dat"# Trigger charactor to use.set cmdchar_ "*"set VAB(ver) "v1.02.02"proc cmdchar { } {global cmdchar_; return $cmdchar_}bind join - ** VAB_joinproc VAB_join {nick uhost hand chan} {global VAB if {![voicechan $chan]} {return 1} if {([matchchanattr $hand |$VAB(flag) $chan]) || ([matchchanattr $hand o])} {return 0} pushmode $chan +v $nick                                     }bind pub $VAB(access) [cmdchar]vab pub_vabbind msg $VAB(access) vab pub_vabproc pub_vab {nick uhost hand chan rest} {global VABsubst -nobackslashes -nocommands -novariables rest if {$rest == ""} {              putserv "NOTICE $nick :Calling Syntax: [cmdchar]vab cmd \[nick\]"              putserv "NOTICE $nick :  Commands: list      - Lists no-voice users"              putserv "NOTICE $nick :            add nick  - Add nick to novoice list"              putserv "NOTICE $nick :            del nick  - Remove nick from novoice list"              return 0                  } set cmd [string toupper [lindex $rest 0]] set rest [lrange $rest 1 end] switch $cmd {  "LIST" {vab_listuser $nick $uhost $hand $chan $rest}  "ADD" {vab_adduser $nick $uhost $hand $chan $rest}  "DEL" {vab_deluser $nick $uhost $hand $chan $rest}             }}proc vab_adduser {nick uhost hand chan rest} {global VAB  subst -nobackslashes -nocommands -novariables rest if {$rest == ""} {putserv "NOTICE $nick :Calling Syntax: [cmdchar]vab add nick"; return 0} set user [lindex $rest 0] if {![onchan $user $chan]} {set thand $user} else {set thand [nick2hand $user]} if {![validuser $thand]} {  if {![onchan $user $chan]} {putserv "NOTICE $nick :$user is not on $chan. Can't get a hostmask to add as new user."; return 0}   if {$thand == "*"} {set thand $user}   set sitemask "*!*[string trimleft [maskhost [getchanhost $user $chan]] *!]"   set rt [adduser $thand $sitemask]   if {$rt == 1} {set rt "Success"} else {set rt "Failed"}   putserv "NOTICE $nick :Adding $user\($thand\): $rt"   set rt [chattr $thand ${VAB(default-flags)}]   putserv "NOTICE $nick :Setting default flags for $user\($thand\): $rt"                          } if {([matchchanattr $thand |$VAB(flag) $chan])} {putserv "NOTICE $nick :$user is allready no-voiced on $chan"; return 0} set rt [chattr $thand |+$VAB(flag) $chan] putserv "NOTICE $nick :Flags for $user\($thand\) are now: $rt" if {[isvoice $user $chan]} {pushmode $chan -v $user} #putserv "NOTICE $user :You are now being devoiced, you will not be revoiced. putserv "NOTICE $user :You are now being devoiced, you will not be revoiced on rejoin." putserv "NOTICE $user :You can only be revoiced once the no-voice ban is lifted on you."#devoiced no wont be revoived on entyr eiuther}proc vab_deluser {nick uhost hand chan rest} {global VAB  subst -nobackslashes -nocommands -novariables rest if {$rest == ""} {putserv "NOTICE $nick :Calling Syntax: [cmdchar]vab add nick"; return 0} set user [lindex $rest 0] if {![validuser $user]} {putserv "NOTICE $nick :$user is not a valid user."; return 0} if {(![matchchanattr $user |$VAB(flag) $chan])} {putserv "NOTICE $nick :$user isn't on the no-voiced for $chan"; return 0} set rt [chattr $user |-$VAB(flag) $chan] putserv "NOTICE $nick :Flags for $user are now: $rt" if {[isvoice $user $chan]} {pushmode $chan +v $user} putserv "NOTICE $user :You are now voiced and being removed from the blacklist." putquick "MODE $chan +v $user"}bind pub o|o [cmdchar]vablist pub_VABlistbind msg o|o vablist pub_VABlistproc pub_VABlist {nick uhost hand channel rest} {global VABif {$VAB(chans) == ""} {puthelp "NOTICE $nick :VAB Channel list is empty."                       } else {puthelp "NOTICE $nick :Current VAB channels are: $VAB(chans)"                              }}bind pub o|o [cmdchar]vabadd pub_VABaddbind msg o|o vabadd pub_VABaddproc pub_VABadd {nick uhost hand channel rest} {global VAB if {[voicechan $channel]} {                            puthelp "NOTICE $nick :$channel allready in VAB List"                            return 0                           } puthelp "NOTICE $nick :Adding $channel to VAB List" lappend VAB(chans) $channel save_VAB}bind pub o|o [cmdchar]vabdel pub_VABdelbind pub o|o vabdel pub_VABdelproc pub_VABdel {nick uhost hand channel rest} {global VAB if {![voicechan $channel]} {                            puthelp "NOTICE $nick :$channel not found in  VAB List"                            return 0                           } puthelp "NOTICE $nick :Removing $channel from VAB List" set chans $VAB(chans) set VAB(chans) "" foreach chan $chans {  if {[string tolower $chan] != [string tolower $channel]} {lappend VAB(chans) $chan}                     }save_VAB}proc voicechan {chan} { global VAB set chan [string tolower $chan] set chans [string tolower $VAB(chans)] if {$chan == "*"} {set chans [string tolower [channels]]} set dothechan 0 foreach c $chans {  if {($chan == $c)} {set dothechan 1}                  } if {$dothechan == 0} {return 0} else {return 1}}proc vab_listuser {nick uhost hand chan rest} {global VAB  subst -nobackslashes -nocommands -novariables rest set users [userlist |$VAB(flag) $chan] putserv "NOTICE $nick :The following are listed as no-voice for $chan: $users"}proc load_VAB {} {global VAB  if {[file exists $VAB(datafile)]} {                                 set in [open $VAB(datafile) r]                                 set VAB(chans) [gets $in]                                 close $in                                } {putlog "-VAB- Datafile $VAB(datafile) not found. Using default channel list."}                    }load_VABproc save_VAB {} {global VAB putlog "Saving VAB Data to $VAB(datafile)" set out [open $VAB(datafile) w] puts $out $VAB(chans) close $out}putlog "VoiceAllBut $VAB(ver) by David Proper (DrN) -:LoadeD:-"return "VoiceAllBut $VAB(ver) by David Proper (DrN) -:LoadeD:-"</code></pre></div>From what I asked from the other user who has access to the shell nothing apart from the notices to the user informing them why they are devoiced has been added/altered, no other part of the script has been changed otherwise.<br><br>cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1673">Rob</a> — Sat Dec 31, 2005 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-28T04:13:27-04:00</updated>

		<published>2005-12-28T04:13:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58733#p58733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58733#p58733"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58733#p58733"><![CDATA[
paste the script (I'd guess it's not too long); most people, including me, won't bother to d/l and unzip<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Dec 28, 2005 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rob]]></name></author>
		<updated>2005-12-24T18:31:11-04:00</updated>

		<published>2005-12-24T18:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58651#p58651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58651#p58651"/>
		<title type="html"><![CDATA[little modification]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58651#p58651"><![CDATA[
Hi, i am in need of a little modification<br><br>We currently run a channel on quakenet which averages between 15-30 users. We currently have it set to +m moderated and have this voice all but script by drn loaded on our eggdrop so we can control who gets voiced and who doesnt then on join.<br><br>But what we would like now is to be able to switch the script on and off like *vab off - to switch off<br>or<br>*vab on - to switch it back on<br><br>The script is here:-<br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=613" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... oad&amp;id=613</a><br><br>Any help would be well apprechiated.<br>Many thanks.<br><br>Merry xmas and happy new year to all who reads this too<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1673">Rob</a> — Sat Dec 24, 2005 6:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
