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.

Listen port

General support and discussion of Eggdrop bots.
Post Reply
Y
Yannick80
Voice
Posts: 4
Joined: Tue Oct 21, 2008 12:07 pm

Listen port

Post by Yannick80 »

Hello,
How can i find the listen port of a bot whithout access to .conf file ?
Sorry for my poor english
best regards,
Yannick80
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Listen port

Post by willyw »

Yannick80 wrote:Hello,
How can i find the listen port of a bot whithout access to .conf file ?
Sorry for my poor english
best regards,
Yannick80
In the partyline, issue this command:

Code: Select all

.dccstat
and see if that gives you the info you want.

There may be other ways to get it. Perhaps someone else will comment, too.


I hope this helps.
Y
Yannick80
Voice
Posts: 4
Joined: Tue Oct 21, 2008 12:07 pm

Post by Yannick80 »

thanks but how to do this in tcl ?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I'd look at the dcclist command (see doc/tcl-commands.doc for details)

Code: Select all

set socklist [dcclist TELNET]
foreach item $socklist {
  if {[lindex $item 4 0] == "lstn"} {
    set type [lindex $item 1]
    set port [listex $item 4 1]
# do something here...
  }
}
This should iterate through all telnet-connections, and filter out any non-listening sockets.
NML_375
Y
Yannick80
Voice
Posts: 4
Joined: Tue Oct 21, 2008 12:07 pm

Post by Yannick80 »

Very good, you solve my problem
Thanks a lot
Post Reply