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

	<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>2006-03-07T17:27:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[quantum0726]]></name></author>
		<updated>2006-03-07T17:27:55-04:00</updated>

		<published>2006-03-07T17:27:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60933#p60933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60933#p60933"/>
		<title type="html"><![CDATA[Greet script for selected users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60933#p60933"><![CDATA[
Thanks cache! I modified the script a bit and it's working well.<br><div class="codebox"><p>Code: </p><pre><code>set guestnicks [list "*Guest*"] bind join - * greet:gnickproc greet:gnick {nick uhost hand chan {nn ""}} { global guestnicksif {$nn == ""} { set nn $nick } if {![isbotnick $nick]} {   foreach guestnick $guestnicks {    if {[string match -nocase  $guestnick $nn]} {     # wait a bit first, then send greeting    after 30000    putserv "PRIVMSG $chan :Hi $nick!"    break    }   }  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7442">quantum0726</a> — Tue Mar 07, 2006 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2006-03-05T23:41:22-04:00</updated>

		<published>2006-03-05T23:41:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60893#p60893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60893#p60893"/>
		<title type="html"><![CDATA[Greet script for selected users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60893#p60893"><![CDATA[
Maybe alter this script<br><div class="codebox"><p>Code: </p><pre><code>set badnicks [list "*Guest*"] bind join - * ban:bnick bind nick - * ban:bnick proc ban:bnick {nick uhost hand chan {nn ""}} { global badnicks set bbanmask "*$nick*!*@*" if {$nn == ""} { set nn $nick } if {![isbotnick $nick]} {   foreach badnick $badnicks {    if {[string match -nocase  $badnick $nn]} {     putserv "MODE $chan +b $bbanmask"     putserv "KICK $chan $nick :Guest Nicks not allowed."     break    }   }  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Sun Mar 05, 2006 11:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[quantum0726]]></name></author>
		<updated>2006-03-05T04:25:43-04:00</updated>

		<published>2006-03-05T04:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60874#p60874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60874#p60874"/>
		<title type="html"><![CDATA[Greet script for selected users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60874#p60874"><![CDATA[
Hi, I'm not sure if this is something that can be set directly in eggdrop or if it requires a sep. script (so feel free to move this to another forum if appropriate).<br><br>I'm looking for a way to have my bot greet only users with nicks following a certain pattern, e.g. Guest*.  I found a greet script, but it looks like it'll greet every user:<br><div class="codebox"><p>Code: </p><pre><code>set welc(msg) "hi %nick, welcome!" set welc(chan) "#channel" set welc(type) "1" bind join - #channel* givewelcome proc givewelcome {nick uhost hand chan} { global welc set welctxt $welc(msg) regsub -all "%nick" $welctxt "$nick" welctxt regsub -all "%chan" $welctxt "$chan" welctxt switch $welc(type) { 1 { puthelp "NOTICE $nick :$welctxt" } 2 { puthelp "PRIVMSG $nick :$welctxt" } } } putlog "Channel Greeting - Generated by http://www.egginfo.org - Frostbyte" </code></pre></div>Can I modify this script or can you recommend any script to do this.  I'm guessing just a if clause for $nick would work, but I don't know how to use wildcards/regex in tcl.<br><br>Thanks much!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7442">quantum0726</a> — Sun Mar 05, 2006 4:25 am</p><hr />
]]></content>
	</entry>
	</feed>
