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

	<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>2016-03-12T21:45:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-03-12T21:45:26-04:00</updated>

		<published>2016-03-12T21:45:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104801#p104801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104801#p104801"/>
		<title type="html"><![CDATA[whois off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104801#p104801"><![CDATA[
tq spike nice working this script <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=12299">abah</a> — Sat Mar 12, 2016 9:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-03-08T09:39:37-04:00</updated>

		<published>2016-03-08T09:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104789#p104789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104789#p104789"/>
		<title type="html"><![CDATA[whois off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104789#p104789"><![CDATA[
Try his slightly edited version.<br>Set your channel(s) in script settings now.<div class="codebox"><p>Code: </p><pre><code>################################################################################################  ##     whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help        ##  ################################################################################################## DISABLED: To use this script you must set channel flag +whois (ie .chanset #chan +whois) ##################################################################################################      ____                __                 ###########################################  ####     / __/___ _ ___ _ ___/ /____ ___   ___   ###########################################  ####    / _/ / _ `// _ `// _  // __// _ \ / _ \  ###########################################  ####   /___/ \_, / \_, / \_,_//_/   \___// .__/  ###########################################  ####        /___/ /___/                 /_/      ###########################################  ####                                             ###########################################  ##################################################################################################  ##                             Start Setup.                                         ##  ################################################################################################namespace eval whois {## set one or more channel(s) for the script to run in (space separated)  variable runchans {#somechannel}    ;## &lt;-- NEW SETTING &lt;-- YOU MUST SET THIS!! &lt;-- ###### change cmdchar to the trigger you want to use                                        ##  ##  variable cmdchar "!"## change command to the word trigger you would like to use.                            ##  #### Keep in mind, This will also change the .chanset +/-command                          ##  ##  variable command "whois"## change textf to the colors you want for the text.                                    ##  ##  variable textf "\017\00304"## change tagf to the colors you want for tags:                                         ##  ##    variable tagf "\017\002"## Change logo to the logo you want at the start of the line.                           ##  ##    variable logo "\017\00304\002\[\00306W\003hois\00304\]\017"## Change lineout to the results you want. Valid results are channel users modes topic  ##  ##  variable lineout "channel users modes topic"################################################################################################  ##                           End Setup.                                              ## ################################################################################################    variable channel ""# setudef flag $whois::command  bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list  bind raw -|- "311" whois::311  bind raw -|- "312" whois::312  bind raw -|- "319" whois::319  bind raw -|- "317" whois::317  bind raw -|- "313" whois::multi  bind raw -|- "310" whois::multi  bind raw -|- "335" whois::multi  bind raw -|- "301" whois::301  bind raw -|- "671" whois::multi  bind raw -|- "320" whois::multi  bind raw -|- "401" whois::multi  bind raw -|- "318" whois::318  bind raw -|- "307" whois::307}proc whois::311 {from key text} {  if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \    $nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname"  }}proc whois::multi {from key text} {  if {[regexp {\:(.*)$} $text match $key]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]"    return 1  }}proc whois::312 {from key text} {  regexp {([^\s]+)\s\:} $text match server  putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server"}proc whois::319 {from key text} {  if {[regexp {.+\:(.+)$} $text match channels]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels"  }}proc whois::317 {from key text} {  if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \    [ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]"  }}proc whois::301 {from key text} {  if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg"  }}proc whois::318 {from key text} {  namespace eval whois {    variable channel ""  }  variable whois::channel ""}proc whois::307 {from key text} {  putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick"}proc whois::list {nick host hand chan text} {  if {[lsearch -exact -nocase ${whois::runchans} $chan] &gt; -1} {    namespace eval whois {      variable channel ""    }    variable whois::channel $chan    putserv "WHOIS $text"  }}putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \Ford_Lawnmower irc.GeekShed.net #Script-Help"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Mar 08, 2016 9:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-03-08T04:02:59-04:00</updated>

		<published>2016-03-08T04:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104787#p104787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104787#p104787"/>
		<title type="html"><![CDATA[whois off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104787#p104787"><![CDATA[
<blockquote class="uncited"><div>This script already turns off and on with a chanset.</div></blockquote>tq for respons sir but i dont want to use .chanset can help me change .chanset to other<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Tue Mar 08, 2016 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-03-07T09:58:44-04:00</updated>

		<published>2016-03-07T09:58:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104786#p104786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104786#p104786"/>
		<title type="html"><![CDATA[whois off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104786#p104786"><![CDATA[
This script already turns off and on with a chanset.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Mar 07, 2016 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-03-07T07:09:05-04:00</updated>

		<published>2016-03-07T07:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104784#p104784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104784#p104784"/>
		<title type="html"><![CDATA[whois off switch]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104784#p104784"><![CDATA[
I want a off switch (.chanset #chan +whois) for this script:<div class="codebox"><p>Code: </p><pre><code>################################################################################################  ##     whois.tcl for eggdrop by Ford_Lawnmower irc.geekshed.net #Script-Help        ##  ################################################################################################## To use this script you must set channel flag +whois (ie .chanset #chan +whois)           ##################################################################################################      ____                __                 ###########################################  ####     / __/___ _ ___ _ ___/ /____ ___   ___   ###########################################  ####    / _/ / _ `// _ `// _  // __// _ \ / _ \  ###########################################  ####   /___/ \_, / \_, / \_,_//_/   \___// .__/  ###########################################  ####        /___/ /___/                 /_/      ###########################################  ####                                             ###########################################  ##################################################################################################  ##                             Start Setup.                                         ##  ################################################################################################namespace eval whois {## change cmdchar to the trigger you want to use                                        ##  ##  variable cmdchar "!"## change command to the word trigger you would like to use.                            ##  #### Keep in mind, This will also change the .chanset +/-command                          ##  ##  variable command "whois"## change textf to the colors you want for the text.                                    ##  ##  variable textf "\017\00304"## change tagf to the colors you want for tags:                                         ##  ##    variable tagf "\017\002"## Change logo to the logo you want at the start of the line.                           ##  ##    variable logo "\017\00304\002\[\00306W\003hois\00304\]\017"## Change lineout to the results you want. Valid results are channel users modes topic  ##  ##  variable lineout "channel users modes topic"################################################################################################  ##                           End Setup.                                              ## ################################################################################################    variable channel ""  setudef flag $whois::command  bind pub -|- [string trimleft $whois::cmdchar]${whois::command} whois::list  bind raw -|- "311" whois::311  bind raw -|- "312" whois::312  bind raw -|- "319" whois::319  bind raw -|- "317" whois::317  bind raw -|- "313" whois::multi  bind raw -|- "310" whois::multi  bind raw -|- "335" whois::multi  bind raw -|- "301" whois::301  bind raw -|- "671" whois::multi  bind raw -|- "320" whois::multi  bind raw -|- "401" whois::multi  bind raw -|- "318" whois::318  bind raw -|- "307" whois::307}proc whois::311 {from key text} {  if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $text wholematch nick ident host realname]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Host:${whois::textf} \    $nick \(${ident}@${host}\) ${whois::tagf}Realname:${whois::textf} $realname"  }}proc whois::multi {from key text} {  if {[regexp {\:(.*)$} $text match $key]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Note:${whois::textf} [subst $$key]"    return 1  }}proc whois::312 {from key text} {  regexp {([^\s]+)\s\:} $text match server  putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Server:${whois::textf} $server"}proc whois::319 {from key text} {  if {[regexp {.+\:(.+)$} $text match channels]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Channels:${whois::textf} $channels"  }}proc whois::317 {from key text} {  if {[regexp -- {.*\s(\d+)\s(\d+)\s\:} $text wholematch idle signon]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Connected:${whois::textf} \    [ctime $signon] ${whois::tagf}Idle:${whois::textf} [duration $idle]"  }}proc whois::301 {from key text} {  if {[regexp {^.+\s[^\s]+\s\:(.*)$} $text match awaymsg]} {    putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Away:${whois::textf} $awaymsg"  }}proc whois::318 {from key text} {  namespace eval whois {    variable channel ""  }  variable whois::channel ""}proc whois::307 {from key text} {  putserv "PRIVMSG $whois::channel :${whois::logo} ${whois::tagf}Services:${whois::textf} Registered Nick"}proc whois::list {nick host hand chan text} {  if {[lsearch -exact [channel info $chan] "+${whois::command}"] != -1} {    namespace eval whois {      variable channel ""    }    variable whois::channel $chan    putserv "WHOIS $text"  }}putlog "\002*Loaded* \017\00304\002\[\00306W\003hois\00304\]\017 \002by \Ford_Lawnmower irc.GeekShed.net #Script-Help"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Mon Mar 07, 2016 7:09 am</p><hr />
]]></content>
	</entry>
	</feed>
