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

	<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>2004-04-25T09:10:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-25T09:10:16-04:00</updated>

		<published>2004-04-25T09:10:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35816#p35816</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35816#p35816"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35816#p35816"><![CDATA[
Ok, I found A Way After Many Many Tries !!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Apr 25, 2004 9:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-25T04:48:49-04:00</updated>

		<published>2004-04-25T04:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35810#p35810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35810#p35810"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35810#p35810"><![CDATA[
string match -nocase "*$ban*" $userhost<br>doesn't work.<br><br>If a user gives a command like !banhost *!*@someone.com the bot searches the userlist and tries to match that ban. But if a user has <br>*!<a href="mailto:someone@someone.com">someone@someone.com</a> the bot DOESN'T match it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br>Any ideas on who to make this work ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Apr 25, 2004 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-23T12:28:02-04:00</updated>

		<published>2004-04-23T12:28:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35783#p35783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35783#p35783"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35783#p35783"><![CDATA[
Anyone Can Help Please ???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Fri Apr 23, 2004 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-20T13:36:30-04:00</updated>

		<published>2004-04-20T13:36:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35733#p35733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35733#p35733"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35733#p35733"><![CDATA[
Let me explain,<br><br>$who is the host given by the person activating the proc.<br>for example host *!*@something.com<br><br>I want the bot to scan and match that host with any bot having the flags +b and return 0 if it does. If it doesnt, scan all channels,all nicknames and look if anyone matches the host and if it does ban him/her.<br><br>This is basically what i want.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Tue Apr 20, 2004 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-19T11:02:35-04:00</updated>

		<published>2004-04-19T11:02:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35703#p35703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35703#p35703"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35703#p35703"><![CDATA[
<blockquote class="uncited"><div>foreach user [userlist] {<br>if {[matchattr $user b]} {<br>if {[string match -nocase $who [getuser $user HOSTS]]} { <br>putnotc $nick "Will Never Ban A Bot."<br>return 0 }}}</div></blockquote>What are you trying to do? 'userlist b' would list all the bots. (no need for that matchattr) Is $who a host or a hostMASK? [getuser handle HOSTS] returns a list, so you probably want to loop through that list and do some matching with each element... OR would 'finduser' (tcl-commands.doc) get the job done?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Apr 19, 2004 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-19T07:53:54-04:00</updated>

		<published>2004-04-19T07:53:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35700#p35700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35700#p35700"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35700#p35700"><![CDATA[
foreach user [userlist] {<br>if {[matchattr $user b]} {<br>if {[string match -nocase $who [getuser $user HOSTS]]} { <br>putnotc $nick "Will Never Ban A Bot."<br>return 0 }}}<br><br>This doesnt work. I input a bots host and it doesnt stop here.<br>It goes on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon Apr 19, 2004 7:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2004-04-18T03:07:00-04:00</updated>

		<published>2004-04-18T03:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35669#p35669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35669#p35669"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35669#p35669"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc checkuser {nick host hand chan arg} {  set check_host [lindex [split $arg] 0]  foreach user [chanlist $chan] {     if {[string match -nocase $check_host [getchanhost $user $chan]]} {        putserv "NOTICE $nick :$check_host matches $user ([getchanhost $user $chan])"        break     }  }}</code></pre></div>....or something like that. I hope that helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Sun Apr 18, 2004 3:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-04-17T13:58:03-04:00</updated>

		<published>2004-04-17T13:58:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35658#p35658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35658#p35658"/>
		<title type="html"><![CDATA[Help With Matching A Host To A Nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35658#p35658"><![CDATA[
I need a script that will match a host given by a user to a nickname in a channel. <br><br>Can you help ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sat Apr 17, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
