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

	<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>2002-09-13T07:28:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-13T07:28:57-04:00</updated>

		<published>2002-09-13T07:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10836#p10836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10836#p10836"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10836#p10836"><![CDATA[
/me gets out the prayer mat ... and bows down to the revered one ...<br><br>we're not worthy .. .schniff.... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Fri Sep 13, 2002 7:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-13T05:49:19-04:00</updated>

		<published>2002-09-13T05:49:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10832#p10832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10832#p10832"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10832#p10832"><![CDATA[
The Lax standard hostmask is there, mainly as a compromise.<br><br>Most users of eggdrop, fail to grasp the idea behind hostmasks, and how they relate to handles (most don't even know that a handle isn't anything to do with IRC).<br><br>As such, if stronger hostmasks (EG nick!*user@*.region.isp.com) where used, this would mean most users bcome unrecognisable the next time they log on.<br><br>Thus, this hostmask (which I belive is the standard mIRC mask as well) is used.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Sep 13, 2002 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-12T16:57:00-04:00</updated>

		<published>2002-09-12T16:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10823#p10823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10823#p10823"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10823#p10823"><![CDATA[
Aha!!!!<br><br>Thankyou very much!!! (although it wasnt quite as simple as you said...)<br><br>I set the hostmasks properly - they were all set to *!<a href="mailto:bothand@wibble.wobble">bothand@wibble.wobble</a> and it still didnt work.... then I noticed that my ident daemon was identifiying them all as me.... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>So slight idiocy on my behalf... its interesting that the code sets such lax hostmasks as standard...<br><br>But cheers!! Chan_Send_Zapf now works ... unbelievable I tell you.<br><br>More problems will be posted as they come up...<br><br>P.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Thu Sep 12, 2002 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-12T11:08:04-04:00</updated>

		<published>2002-09-12T11:08:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10806#p10806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10806#p10806"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10806#p10806"><![CDATA[
I understand perfectly now.<br><br>This is basicaly nothing to do with C, or Tcl.<br><br>To solve this, use better hostmask records for the bot, int he other bots.<br><br>handonchan tracks users using hostmasks.<br><br>IE.<br><br>Bot1!<a href="mailto:userA@host.c">userA@host.c</a><br><br>The other bots have a a hostmask set for this bot as *!<a href="mailto:userA@host.c">userA@host.c</a>".<br><br>No matter what nickname the bot uses, the other can track the bot, due to wildcard matching any nickname.<br><br>The above hostmask can be rather open, and anytime that user acount is compromised, simply running a client with the same v-host would mean that person is trackedas the bot.<br><br>This is why eggdrop allows more than 1 hostmask to be stored for each user.<br><br>IE, my bot does nick-keeping too.<br><br>This, all the bots have 2 hostmasks for my bot.<br><br>ppslim!username@host<br>&amp;<br>nickname!username@host<br><br>That way, if my bot uses wither nickname, the other bots still recognise him as the same handle.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Sep 12, 2002 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-12T07:17:56-04:00</updated>

		<published>2002-09-12T07:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10797#p10797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10797#p10797"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10797#p10797"><![CDATA[
Confusion!!!<br><br>Okies ... a little background. The idea is that when someone says a public trigger in the channel, that only on bot will respond to it, even though they are all running the same code (got a bit fed up with using different command characters for each bot...)<br><br>The only sensible way to do this was to elect a 'spokesbot' on each channel that would decide who responded to what - this would be done by election (hence the sending a message to each bot in the channel) based on things such as processor speed, netspeed, number of bots on this host, etc. These elections to be held when a bot joins the channel, parts the channel or gets split.<br><br>The problem with the 'nick keeper' bot is that it keeps my nick (Photon) when I'm not there. Therefore it has two nicks, either one of which it could have at any time (Scratchy or Photon). This casued a problem with the boptnet initially, but then I discovered - set a botnetnick that is always scratchy and the problem is solved. ahhhhh no....<br><br>Now I have the problem that when I trawl through the bot list, I get the botnetnick for each bot (in Scratchy's case 'Scratchy'), and doing a handonchan (or whatever) it fails, 'cos Scratchy is Photon in the channel.<br><br>Ppslims idea is interesting - I'll have to try that, but it would seem that the whole user records are confused, 'cos if I do a whois on Scratchy when he is Photon, it tells me its hand is Photon, which is MY hand!!!<br><br>Confused yet?? I am....  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"> <br><br>At the moment its working with doing a zapf_broad (putallbots to ya tclers) with each bot fast rejecting due to not being on the channel - but this is a waste of bandwidth (oh and the election has to be held over time, rather than waiting for n responses as it did before). If only I had a botnetnick_to_hand then it wall all be easily sorted, but unfortunately it would seem that the only person that knows that info is the bot itself...<br><br>(thinks : now I could waste even more bandwidth getting the bot to tell me .. lol)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Thu Sep 12, 2002 7:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-12T01:25:43-04:00</updated>

		<published>2002-09-12T01:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10794#p10794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10794#p10794"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10794#p10794"><![CDATA[
First of all, I have no idea what a nick holder bot is or why you need to see if all the bots are on the channel.<br><blockquote class="uncited"><div>Ok - scrap that .. just tried handtonick (using the bot-&gt;bot name as input) and I get nothing back!!! waaaaaaaahhhh!!! </div></blockquote>Maybe you don't have a user added for Scratchy? The bot does not create a user for himself by default, so unless you added it,it's not there.<br><br>But anyway, if Scratchy is the one running this code, and your problem is only that your code can't tell whether he's on the channel, I'd say learn about the "botonchan" command heh. As for nick2hand / hand2nick, why not use the combo punch "handonchan" for the other bots? (I see you have your own HandOnChan(), but does it do the same thing?)<br><br>Finally, note that your idea of sending a message the over botnet is the only way to guarantee that the bots are on or off the channel. If you rely on local information (handonchan, etc), your code may be confused when the bot really isn't on the channel but someone matching his hostmask is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Sep 12, 2002 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-11T15:14:19-04:00</updated>

		<published>2002-09-11T15:14:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10788#p10788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10788#p10788"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10788#p10788"><![CDATA[
Wouldn't it be simpler to cycle through each member of a channel, then see check the handle doing the C equivilant of nick2hand.<br><br>Then return when found.<br><br>This would allow for non-linked bots to be returned correctly.<br><br>Cycling the each bot in the botnet uses bandwidth, that is not required.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 11, 2002 3:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-11T10:55:41-04:00</updated>

		<published>2002-09-11T10:55:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10780#p10780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10780#p10780"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10780#p10780"><![CDATA[
Well no...<br><br>what I'm trying to do is send a message to all bots in the channel, but because of the duplicity of the nick-holder bot (Scratchy), it always thinks Scratchy is not on the channel. ('cos its nick is currently Photon)<br><br>Only thought of one other solution - do a zapf_broad, and make each individual bot check if they are on the channel. Problem with this is that I have no idea how many reponses to expect, and I'll just have to allow a set time for response...<br><br>All I basically need is something that takes in a botnetnick and returns the bots current botnick...<br><br>the code below always fails<br><div class="codebox"><p>Code: </p><pre><code>static int Chan_Send_Zapf(struct chanset_t * pChan, char * pZapf){intnBots = 0;tand_t* pBot;for(pBot = tandbot; pBot; pBot = pBot-&gt;next){//if(HandOnChan(pBot-&gt;bot, pChan))if(ismember(pChan, pBot-&gt;bot)){intnBotID;nBotID = nextbot(pBot-&gt;bot);if(nBotID &gt;= 0){nBots++;botnet_send_zapf(nBotID, botnetnick, pBot-&gt;bot, pZapf);putlog(LOG_CMDS, "*", "Sent zapf to %s", pBot-&gt;bot);}}else{putlog(LOG_CMDS, "*", "%s is not on chan", pBot-&gt;bot);}}return nBots;}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Wed Sep 11, 2002 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-11T10:50:20-04:00</updated>

		<published>2002-09-11T10:50:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10779#p10779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10779#p10779"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10779#p10779"><![CDATA[
Are you trying to say it should be tracing itself?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 11, 2002 10:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-11T10:38:34-04:00</updated>

		<published>2002-09-11T10:38:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10778#p10778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10778#p10778"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10778#p10778"><![CDATA[
Ok - scrap that .. just tried handtonick (using the bot-&gt;bot name as input) and I get nothing back!!! waaaaaaaahhhh!!!<br><br>What it is...<br><br>Scratchy's botnick is Photon<br>Scratchy's altbotnick is Scratchy<br>Scratchy's botnetnick is Scratchy<br><br>(all this from a nick holder tcl script found in the archive)<br><br>However, in from bot-&gt;bot I get the name Scratchy, and I need to trace that to Photon.... any clues? Or are u as confused as I am..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Wed Sep 11, 2002 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-11T10:12:23-04:00</updated>

		<published>2002-09-11T10:12:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10777#p10777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10777#p10777"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10777#p10777"><![CDATA[
a nick2hand and hand2nick converter is allready available in Tcl.<br><br>As suhc, you can see the code for them in the source.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Sep 11, 2002 10:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-11T09:59:01-04:00</updated>

		<published>2002-09-11T09:59:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10776#p10776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10776#p10776"/>
		<title type="html"><![CDATA[Aaaaargh .. one bot - how many nicks?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10776#p10776"><![CDATA[
Okies ... I have a complicated problem...<br><br>My problem is this. I have a nick keeper bot in my channel, along with a few others. A piece of code I am trying to write always fails, because I'm running through all the bots trying to see if they are on a channel, and the nick-keeper bot always fails, because its real name is not the name it has right at the mo.<br><br>However, it would seem I can only get the bots real name (not sure if its that or handle) from the tand_t structure. Therefore ismember fails becaus there is no such nick on that channel. HELP!!! I think I need some kind of hand to nick converter, but I cant work out how to do that.<br><br>Any clues?? (even if in tcl, 'cos I can easily convert it)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Wed Sep 11, 2002 9:59 am</p><hr />
]]></content>
	</entry>
	</feed>
