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

	<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-07-16T10:14:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-16T10:14:30-04:00</updated>

		<published>2005-07-16T10:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52594#p52594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52594#p52594"/>
		<title type="html"><![CDATA[auto op a certain hostmask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52594#p52594"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>string match -nocase $hostname $nick!$uhost</code></pre></div>would be a better choice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 16, 2005 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-07-16T10:01:49-04:00</updated>

		<published>2005-07-16T10:01:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52593#p52593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52593#p52593"/>
		<title type="html"><![CDATA[auto op a certain hostmask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52593#p52593"><![CDATA[
You can do it by spocks method also or here by correcting your script, which would be like this:<br><div class="codebox"><p>Code: </p><pre><code>set hostname "*!*@aol.com"bind join - "*" join:ophostproc join:ophost {nick uhost hand chan} { global hostname  if {[string match -nocase *$hostname* "$nick!$uhost"]} {   pushmode $chan +o $nick   }} </code></pre></div>Note: In this example I have included the full mask: nick!<a href="mailto:ident@host.domain.com">ident@host.domain.com</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jul 16, 2005 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-07-16T09:52:29-04:00</updated>

		<published>2005-07-16T09:52:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52592#p52592</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52592#p52592"/>
		<title type="html"><![CDATA[auto op a certain hostmask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52592#p52592"><![CDATA[
you can do this without a script by adding a user with the desired host and the o flag (+ chanset autoop) or the a flag.<br><br>to fix your error use $::hostname (or add "global hostname") at the top of your proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sat Jul 16, 2005 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bratt]]></name></author>
		<updated>2005-07-16T09:05:04-04:00</updated>

		<published>2005-07-16T09:05:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52589#p52589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52589#p52589"/>
		<title type="html"><![CDATA[auto op a certain hostmask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52589#p52589"><![CDATA[
hi been trying to make a quick script that will make the bot op a certain hostmask or ident.<br>but simply can't do it here it what i did so far and it aint working<br><div class="codebox"><p>Code: </p><pre><code>set hostname "IDENT@IP.ADDRESS"bind join - * join:ophostproc join:ophost { nick host hand chan } {if { $host == $hostname } {pushmode $chan +o $nick}}</code></pre></div>the error message i get is something along the lines of cannot read hostname no such variable.<br><br>thanx in advance<br><br>Bratt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6437">bratt</a> — Sat Jul 16, 2005 9:05 am</p><hr />
]]></content>
	</entry>
	</feed>
