egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connect as serverr

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Aug 15, 2006 8:38 pm    Post subject: Connect as serverr Reply with quote

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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 15, 2006 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Aug 16, 2006 9:58 am    Post subject: Reply with quote

Why would you even want to use eggdrop to do that.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Aug 16, 2006 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Aug 16, 2006 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Wed Aug 16, 2006 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Aug 16, 2006 11:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Thu Aug 17, 2006 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber