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

	<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>2001-11-08T08:22:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-08T08:22:00-04:00</updated>

		<published>2001-11-08T08:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1485#p1485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1485#p1485"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1485#p1485"><![CDATA[
Must I put this code in the config file?<p>Statistics: Posted by Guest — Thu Nov 08, 2001 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-04T22:32:00-04:00</updated>

		<published>2001-11-04T22:32:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1374#p1374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1374#p1374"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1374#p1374"><![CDATA[
According to my tests, it works fine.<br><br>Read the bottom of the first reply to the thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 04, 2001 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-04T03:35:00-04:00</updated>

		<published>2001-11-04T03:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1354#p1354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1354#p1354"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1354#p1354"><![CDATA[
Sorry about that, and thanks for your help!<br><br>Ive just added your change and it says<br><br>--&gt; I am not on that channel, try another<br><br>Thanks<br><br>&lt;font size=-1&gt;[ This Message was edited by: BassTeQ on 2001-11-04 00:45 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sun Nov 04, 2001 3:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-29T11:20:00-04:00</updated>

		<published>2001-10-29T11:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1160#p1160</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1160#p1160"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1160#p1160"><![CDATA[
Be more specific of your needs next time, as this is very space consuming to keep pasting updates all the time.<br><div class="codebox"><p>Code: </p><pre><code>bind msg - !host priv:gethostproc priv:gethost {nick uh hand arg} {  if {[set chan [lindex [split $arg] 1]] == ""} {    puthelp "PRIVMSG $nick :You need to state a channel "!host &lt;nick&gt; &lt;channel&gt;""    return  }  if {![validchan $chan]} {    puthelp "PRIVMSG $nick :I am not on that channel, try another"    return  }  set proc $nick  if {([set nnick [lindex [split $arg] 0]] != "") &amp;&amp; ([matchattr $hand "o|o" $chan])} {    set proc $nnick  }  if {![onchan $proc $chan]} {    puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"    return  }  puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [getchanhost $proc $chan]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 29, 2001 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-29T04:44:00-04:00</updated>

		<published>2001-10-29T04:44:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1154#p1154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1154#p1154"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1154#p1154"><![CDATA[
Works great thanks,<br>just one small change, it retuns the hostmask as<br>The the hostmask for "bassteq" is *!BassTeQ@*.mydomain.net.au<br><br>How could I get it to show the FULL mask after the @ ?<br>Thanks mate.<p>Statistics: Posted by Guest — Mon Oct 29, 2001 4:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-26T23:31:00-04:00</updated>

		<published>2001-10-26T23:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1096#p1096</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1096#p1096"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1096#p1096"><![CDATA[
/me wonders if he was on crack while writing the update!<br><div class="codebox"><p>Code: </p><pre><code>bind msg - !host priv:gethostproc priv:gethost {nick uh hand arg} {  if {[set chan [lindex [split $arg] 1]] == ""} {    puthelp "PRIVMSG $nick :You need to state a channel "!host &lt;nick&gt; &lt;channel&gt;""    return  }  if {![validchan $chan]} {    puthelp "PRIVMSG $nick :I am not on that channel, try another"    return  }  set proc $nick  if {([set nnick [lindex [split $arg] 0]] != "") &amp;&amp; ([matchattr $hand "o|o" $chan])} {    set proc $nnick  }  if {![onchan $proc $chan]} {    puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"    return  }  puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Oct 26, 2001 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-26T08:27:00-04:00</updated>

		<published>2001-10-26T08:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1084#p1084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1084#p1084"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1084#p1084"><![CDATA[
I get this error msg on the new code you did.<br><br>Also the bot only sits on one channel, and id only want the host names of people on my channel.<br><br>Any ideas?<br>Thanks.<br><br>[20:21] TCL error [pub:gethost]: no value given for parameter "arg" to "pub:gethost"<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: BassTeQ on 2001-10-26 08:18 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Fri Oct 26, 2001 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-24T10:24:00-04:00</updated>

		<published>2001-10-24T10:24:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1012#p1012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1012#p1012"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1012#p1012"><![CDATA[
WIth some fiddleing, this should work.<br><br>It required that a channel name be passed to the script as well, as previously, the user was on the channel, so that channel could be used.<br><br>It now output to the user via PM.<br><div class="codebox"><p>Code: </p><pre><code>bind msg - !host pub:gethostproc priv:gethost {nick uh hand arg} {  if {[set chan [lindex [split $arg] 1]] == ""} {    puthelp "PRIVMSG $nick :You need to state a channel "!host &lt;nick&gt; &lt;channel&gt;""    return  }  if {![validchan $chan]} {    puthelp "PRIVMSG $nick :I am not on that channel, try another"    return  }  set proc $nick  if {([set nnick [lindex [split $arg] 0]] != "") &amp;&amp; ([matchattr $hand "o|o" $chan])} {    set proc $nnick  }  if {![onchan $proc $chan]} {    puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"    return  }  puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Oct 24, 2001 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-24T10:17:00-04:00</updated>

		<published>2001-10-24T10:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1011#p1011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1011#p1011"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1011#p1011"><![CDATA[
Worked great, how could I bind the 2nd example to the /msg command?<br><br>Cheers<p>Statistics: Posted by Guest — Wed Oct 24, 2001 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-23T20:44:00-04:00</updated>

		<published>2001-10-23T20:44:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=999#p999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=999#p999"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=999#p999"><![CDATA[
Cheers mate, Ill try it out tonight.<br>Greatly appreciated!<br><br>BassTeQ<p>Statistics: Posted by Guest — Tue Oct 23, 2001 8:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-22T22:14:00-04:00</updated>

		<published>2001-10-22T22:14:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=961#p961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=961#p961"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=961#p961"><![CDATA[
This depends where you want to get the hostmasks from. The userfile, or IRC.<br><br>If you want the host masks from the bots userfile, then this should do.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !host pub:gethostproc pub:gethost {nick uh hand chan arg} {  if {![validuser $hand]} { return }  set proc $hand  if {([set nnick [lindex [split $arg] 0]] != "") &amp;&amp; ([matchattr $hand "o|o" $chan])} {    set proc $nnick  }  if {![validuser $proc]} {    puthelp "PRIVMSG $chan :$nick - there is no such user "${proc}""  }  puthelp "PRIVMSG $chan :HOSTS for $proc : [string trimright [join [getuser $proc HOSTS] ", "] ", "]"}</code></pre></div>To get the info from irc.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !host pub:gethostproc pub:gethost {nick uh hand chan arg} {  set proc $nick  if {([set nnick [lindex [split $arg] 0]] != "") &amp;&amp; ([matchattr $hand "o|o" $chan])} {    set proc $nnick  }  if {![onchan $proc $chan]} {    puthelp "PRIVMSG $chan :I can't get info on "${proc}" - he isn;t on channel"    return  }  puthelp "PRIVMSG $chan :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"}</code></pre></div><strong class="text-strong">Note:</strong> This will only work if the user is on the channel. If the user is not the channel, or not known by the bot, then somthing more complex is required, to send a whois, and take the returned data, process it and make sure it reaches the correct destination.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 22, 2001 10:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-22T21:52:00-04:00</updated>

		<published>2001-10-22T21:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=960#p960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=960#p960"/>
		<title type="html"><![CDATA[Users Host Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=960#p960"><![CDATA[
Im looking for a script that will show me a users host mask upon a public trigger<br>eg. !Host Nickname<br>I did find one but it will only show you your own host mask. The reason I need this is that it makes it easier to ban a host<br>*!*@*.122-domain.com<br>Could anyone maybe provide me with a link or some code to achieve this please?<br><br>Thank You<br><p>Statistics: Posted by Guest — Mon Oct 22, 2001 9:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
