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.

CTCP doesn't reply - followed all instructions

General support and discussion of Eggdrop bots.
f
flyingbaobab
Voice
Posts: 8
Joined: Fri Sep 22, 2006 3:05 am
Location: Europe
Contact:

CTCP doesn't reply - followed all instructions

Post by flyingbaobab »

Hi,

Whenever I try to /ctcp mybot CHAT i get no ctcp reply.

What I've tried so far:
- opened proper firewall port on my Suse Linux home OS
- logged in with different irc clients (kvirc, konversation & xchat)
- tried many different ports
- tried both connecting trough and without bouncer
- changed my vhost / IP
- logged in from a windows comp with mirc, addjusted the settings like I've found in the 'Help us to help you (and try to help yourself)' post in this forum.
- went 4 times trough the config file to find a setting i missed
- the ports on my shell aren't blocked, cause i've tried to connect through them via psybnc and that works fine

Other info

- Running Eggdrop 1.6.18
- I'm not on a LAN
- 1.6.17 used to work fine with same home configuration and on the same shell
- The bot appears fine on irc, and when opping him he does what he needs to do regarding channel management
- I'm on a private irc network using chanserv/nickserv
- When I telnet from the console to my bot and then try to ctcp him on irc i get following message in telnet:

*** X joined the party line.
[09:34] CTCP CHAT: from X (~X@X.users.X.com)
(where X is my nick and irc server)


- When I start the bot i get
Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[09:18] --- Loading eggdrop v1.6.18 (Fri Sep 22 2006)
[09:18] Listening at telnet port 34567 (all).
[09:18] Module loaded: dns
[09:18] Module loaded: channels
[09:18] Module loaded: server
[09:18] Module loaded: ctcp
[09:18] Module loaded: irc
[09:18] Module loaded: notes (with lang support)
[09:18] Module loaded: console (with lang support)
[09:18] Module loaded: blowfish
[09:18] Module loaded: uptime
[09:18] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[09:18] use '.help userinfo' for commands.
[09:18] Userfile loaded, unpacking...
[09:18] === flyingbao: 1 channels, 1 users.
Launched into the background (pid: 13976)


- In my logs I see

[06:09] CTCP hello: from X (~X@X.users.X.com)
[06:13] CTCP CHAT: from X (~X@X.users.X.com)


My question

Since I run out of knowledge cq ideas how to solve this: anyone a tip / tutorial / debug tool / etc for what I could do to fix this? Or at least know why it isn't working?


Thx in advance
F.B. :roll:
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Checked your userfile for the +p flag to allow connecting to the partyline? Checked your hostmasks for your handle in the userfile? :)

The other suggestions I have would be:

Most clients use "/dcc chat nick" not /ctcp (although I don't know if that even makes a difference..Never thought to look at the src for my irc client for that.)

I'm thinking that's the problem cos my log shows (and yours does not show the DCC):

[00:32] CTCP DCC: CHAT chat 3454983022 33069 from rosc (~rosc@xanadu.rush2112.vh)

The other idea that occurred to me, was to make sure you have the ip_conntrack_irc module loaded for your firewall in linux if you're using iptables.
f
flyingbaobab
Voice
Posts: 8
Joined: Fri Sep 22, 2006 3:05 am
Location: Europe
Contact:

Post by flyingbaobab »

First of all thx for your reply and suggested help. When I tell my 'commercial' friends about the level of feedback and willigness of helping someone with opensource stuff, they never believe me :P
rosc2112 wrote:Checked your userfile for the +p flag to allow connecting to the partyline? Checked your hostmasks for your handle in the userfile? :)
Yeah, this is how it looks like to me:
mynick - hjlmnoptx
--HOSTS -telnet!*@*
--LASTON 1158914058 partyline
--PASS +2q3HI1BtHHl0
--XTRA created 1158903384
::#mynick bans
&&#mynick exempts
$$#mynick invites


So nothing strange imo
rosc2112 wrote:The other suggestions I have would be:

Most clients use "/dcc chat nick" not /ctcp (although I don't know if that even makes a difference..Never thought to look at the src for my irc client for that.)

I'm thinking that's the problem cos my log shows (and yours does not show the DCC):

[00:32] CTCP DCC: CHAT chat 3454983022 33069 from rosc (~rosc@xanadu.rush2112.vh)
Using /ctcp or /dcc makes no difference. My client does support both and it works fine. Besides, as said I've tested with multiple clients on both linux & windows.
rosc2112 wrote:The other idea that occurred to me, was to make sure you have the ip_conntrack_irc module loaded for your firewall in linux if you're using iptables.
I don't use iptables with my firewall (its the standard firewall that comes with openSUSE and where I've opened the proper port). And since its the same problem from a windows box, I have the slightly feeling its on the Eggdrop side and not on the client side.

Still stuck here :p
Any other taughts / suggestions? Perhaps non-standard things in the config-file that I've forgot?
btw, I've only changed the parameters in my eggdrop config file as they explain in http://www.egghelp.org/setup.htm

Thx in advance
FB
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Aha, you're only allowing telnet! :)

I have these hosts for example, in my userfile:

--HOSTS -telnet!*@*
--HOSTS *!~rosc@xanadu.rush2112.vh

PS:
(Might wanna change your password now, cos I think that can be decrypted ;)
f
flyingbaobab
Voice
Posts: 8
Joined: Fri Sep 22, 2006 3:05 am
Location: Europe
Contact:

Post by flyingbaobab »

Added that in my userfile, no difference :(

(my password was just some random text btw, so no need to worry :P )

Anyhow, thinking of just reinstalling my Eggdrop (prolly older version) and see what happens ...

Edit = typo
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Anyone with the nick -telnet gets recognised as the bot owner (nothing to do with telnet btw); no idea why this is added, maybe a hangover from the first eggdrop. I'd be removing it.

*!~rosc@ is best as *!rosc@
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Alchera wrote:Anyone with the nick -telnet gets recognised as the bot owner (nothing to do with telnet btw); no idea why this is added, maybe a hangover from the first eggdrop. I'd be removing it.
Ahh I did not know that. I thought it was for allowing telnets :/
*!~rosc@ is best as *!rosc@
I don't have ident so I thought I needed the ~ in there?

Edit:
I just tested, removed the -telnet!*@* and tried telnetting to the bot (which only listens on localhost anyway) and it would not let me connect. I put the mask back in, and could connect? *confused*

Edit again:
Well ok, I have to use *!telnet@localhost.* as a mask apparently.

[bot(dcc)] [16:58] Telnet connection: localhost.epix.net/35066
[bot(dcc)] [16:58] Logged in: rosc (telnet@localhost.epix.net/35066)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

You cannot simply DCC chat the bot?

Try *!rosc@ and you'll still be recognised.

If using *nix as your OS compile linux-identd to take care of your ident "problem".
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

I can dcc chat it, was just noting that I could not telnet to it without that entry.

I have identd disabled on purpose, cos I think it's useless for anything (so easily spoofed it serves no legitimate purpose in this day and age) except possibly to show that an IP is connected to a particular port..which should already be evident by being connected! :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

IRC networks require a response via 113 (AUTH); some will even refuse connection if there is none (is also a common problem when eggdrop cannot connect).

You need to do some reading up on the Gibson Research Corporation site.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

looking at the original post, this may be a simple matter to fix
it appears the bot was not correctly identified to
[06:09] CTCP hello: from X (~X@X.users.X.com)
[06:13] CTCP CHAT: from X (~X@X.users.X.com)
the initial contact sequence should be:

Code: Select all

msg bot hello
msg bot pass [password]
the first post shows that flyingbaobab used ctcp, instead of msg, for the "hello" contact

from what I see, the bot is not responding because it does not recognize him
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

flyingbaobab wrote:- When I telnet from the console to my bot and then try to ctcp him on irc i get following message in telnet
Very true DragnLord, I misread that one line. :oops:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
f
flyingbaobab
Voice
Posts: 8
Joined: Fri Sep 22, 2006 3:05 am
Location: Europe
Contact:

Post by flyingbaobab »

DragnLord wrote:looking at the original post, this may be a simple matter to fix
it appears the bot was not correctly identified to

the initial contact sequence should be:

Code: Select all

msg bot hello
msg bot pass [password]
the first post shows that flyingbaobab used ctcp, instead of msg, for the "hello" contact

from what I see, the bot is not responding because it does not recognize him
not really, I do did the msg hello / msq pass part ;)
and since i didn't got an answer cq. i had no clue what happened; I telnetted to it to become its master
the bot just doesn't respond to msg or ctcp (while he receives the request as i can see when logged in with telnet).

I still have no clue whats wrong, but at least the bot runs fine and he does what he have to do. Management goes perfectlt via telnet.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

other possibility is that your irc is not allowing it
(bot sends, your client ignores)
such things happen when you are behind a router and your LAN address is different then your WAN address
too many variables and not enough information to accurately assess the situation
f
flyingbaobab
Voice
Posts: 8
Joined: Fri Sep 22, 2006 3:05 am
Location: Europe
Contact:

Post by flyingbaobab »

I was thinking of that one 2, but i usualy run kvirc. Cause it didn't work i tried both xchat & konversation. Even on a standalone windows box with mirc he won't reply (from another internetconnection) and yes, changed my stuff via telnet in my user file when I tried that.

But I'll learn to live with it :)
Post Reply