This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Exceptions to hostmasks

Old posts that have not been replied to for several years.
Locked
I
Interlude

Post by Interlude »

I'm running an eggdrop bot from my computer, and I need the bot to recognize the difference between itself and me. I know that hostmasks are expressed as Nick!ident@hostname. The bot and I must share the same ident@hostname, with the only difference being the nickname. Thus, to differentiate between myself and the bot, I've added myself as Interlude!ident@hostname, and the bot as BotName!ident@hostname. But, I want the freedom to use any nickname I want.

Thus, the problem is this. I want myself to be recognized by the bot as *!ident@hostname, EXCEPT that * cannot be the bot's nick. Is this possible on eggdrop? Can I have exceptions in my hostmask?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »


I need the bot to recognize the difference between itself and me
Unless you feed your bot a vodka (or 2) with a raw egg, afaik the bot will have no problem recognising itself.

Thus, the problem is this. I want myself to be recognized by the bot as *!ident@hostname, EXCEPT that * cannot be the bot's nick. Is this possible on eggdrop? Can I have exceptions in my hostmask?
Have you tried adding "*!ident@hostname" to your handle? Once you have done that, what handle does the bot show for you? (.channel) And what handle does the bot show for itself?

<font size=-1>[ This Message was edited by: egghead on 2002-02-07 05:35 ]</font>
I
Interlude

Post by Interlude »

Actually, the bot doesn't have it's own user account by default. If I don't add it, it doesn't recognize itself (confirmed by /msg Bot whois Bot).

When I added *!ident@hostname to my handle, and Bot!ident@hostname to the bot's account, we both show up under my handle.

Edit: Er, well, it did before. Right now, I've done the same thing, and we show up as separate users. Still, I'm curious as to if there is a way to add exceptions to hostmasks in user accounts.

<font size=-1>[ This Message was edited by: Interlude on 2002-02-07 05:54 ]</font>
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

It becomes a bit of an "existential" topic, but what do you mean by "recognise"?
Afaik, eggdrop "recognises" itself fine (use .channel on the partyline). It will have no problem in telling: <- it's me!. In TCL scripts you can match against the global variable "botnick", [botisop], [botisvoice] etc.

If "/msg bot whois nick" is the measure for "recognition", then the help says:
This will give you information about someone else I know, including his or her default info line, email address, when they were last on the channel, and if they are an op or master.
... someone else ...

The question is why you would want to create a handle to your bot for your bot...

<font size=-1>[ This Message was edited by: egghead on 2002-02-07 07:09 ]</font>
I
Interlude

Post by Interlude »

Well, the question applies not only to just the bot recognizing the difference between itself and myself, but of another bot recognizing this difference as well.
Locked