| View previous topic :: View next topic |
| Author |
Message |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Tue Aug 15, 2006 8:38 pm Post subject: Connect as serverr |
|
|
Can someone write a little piece of code which will connect the eggdrop to a irc server as a server and not a user, through port 4400. I need this for my irc service script, but i have no clue how to connect the eggdrop as a server and not as a user.
Thanks in advance! _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 15, 2006 10:23 pm Post subject: |
|
|
this is an excerpt from my IRC server emulator ircd.tcl
| Code: |
proc introduce_server {host port password} {
variable connected
variable idx; variable myname
if ![valididx $idx] return
set connected 1; variable gotpong 0
log "connected to $host:$port, introducing myself..."
switch $::ircd::servtype {
"hybrid6" {putdcc $idx "PASS $password :TS"}
"hybrid7" {putdcc $idx "PASS $password :TS"; putdcc $idx "CAPAB :LL"}
"unreal" {putdcc $idx "PASS :$password"; putdcc $idx "PROTOCTL SJOIN"}
default {
log "invalid ircd(servtype)! bailing out..."
set connected 0; killdcc $idx
return
}
}
putdcc $idx "SERVER $myname 1 :$::ircd::servinfo"
putdcc $idx "PING :$myname"
}
|
_________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Aug 16, 2006 9:58 am Post subject: |
|
|
| Why would you even want to use eggdrop to do that. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Aug 16, 2006 12:06 pm Post subject: |
|
|
to create an IRC network out of channels on other network _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Aug 16, 2006 4:19 pm Post subject: |
|
|
I was asking tosser why he wants to use eggdrop to make an IRC Service bot (not an IRCd). I'd use just normal TCL.
(Also, eggdrop cannot connect as server, you can only use a script to create a socket to do it, unless you modify the entire eggdrop source to work differently.) |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Wed Aug 16, 2006 5:46 pm Post subject: |
|
|
demond: that code is to connect eggdrop as an ircd, i want the eggdrop to connect as a server, not as an ircd, but as an irc service, not a ircd, a client connected as a server (if you get what i mean). _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Aug 16, 2006 11:32 pm Post subject: |
|
|
tosser: you are completely clueless on the subject, either give up on it or go learn the IRC server protocol; you don't even know what ircd is, let alone how a service relates to it
to be honest, I've never seen someone else trying to come up with something knowing absolutely nothing about it - not in eggdrop scripting, not in any other area _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Thu Aug 17, 2006 1:40 am Post subject: |
|
|
I know exactly what you mean. I have even written some asuka (ircu) compatible 'services' in TCL (no eggdrop attached, like i said, no idea why you would want that)
Tosser should do his homework first, a client can't connect as a server as it has to go through the server introduction first. |
|
| Back to top |
|
 |
|