update server_connect to fix some IRCu problems
This commit is contained in:
parent
add6ad0d21
commit
8281940cfa
11 changed files with 11 additions and 11 deletions
|
@ -146,7 +146,7 @@ send_server (const char* sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", MSG_PASS, pass);
|
||||
send_cmd ("CAPAB TS3 SSJOIN BURST NICKIP");
|
||||
|
|
|
@ -182,7 +182,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", (ircd_srv.token ? TOK_PASS : MSG_PASS), pass);
|
||||
send_cmd ("CAPAB TS5 BURST SSJ5 NICKIP CLIENT");
|
||||
|
|
|
@ -229,7 +229,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
#ifdef ULTIMATE3
|
||||
send_cmd ("%s %s :TS", (ircd_srv.token ? TOK_PASS : MSG_PASS), pass);
|
||||
|
|
2
Unreal.c
2
Unreal.c
|
@ -196,7 +196,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
/* PROTOCTL NOQUIT TOKEN NICKv2 SJOIN SJOIN2 UMODE2 VL SJ3 NS SJB64 */
|
||||
#ifdef SJOIN
|
||||
|
|
2
Viagra.c
2
Viagra.c
|
@ -139,7 +139,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", MSG_PASS, pass);
|
||||
send_cmd ("CAPAB TS3 SSJOIN BURST NICKIP");
|
||||
|
|
|
@ -141,7 +141,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", MSG_PASS, pass);
|
||||
send_cmd ("CAPAB :TS EX CHW IE EOB KLN GLN KNOCK HOPS HUB AOPS MX");
|
||||
|
|
2
ircd.h
2
ircd.h
|
@ -189,7 +189,7 @@ void send_pong (const char *reply);
|
|||
void send_server (const char *sender, const char *name, const int numeric, const char *infoline);
|
||||
void send_squit (const char *server, const char *quitmsg);
|
||||
void send_nick (const char *nick, const unsigned long ts, const char* newmode, const char *ident, const char *host, const char* server, const char *realname);
|
||||
void send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass);
|
||||
void send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink);
|
||||
void send_netinfo (const char* from, const int prot, const char* cloak, const char* netname, const unsigned long ts);
|
||||
void send_snetinfo (const char* from, const int prot, const char* cloak, const char* netname, const unsigned long ts);
|
||||
#ifdef MSG_SVINFO
|
||||
|
|
|
@ -171,7 +171,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", MSG_PASS, pass);
|
||||
send_cmd ("CAPAB TS3 SSJOIN BURST NICKIP");
|
||||
|
|
2
main.c
2
main.c
|
@ -520,7 +520,7 @@ start (void)
|
|||
nlog (LOG_WARNING, LOG_CORE, "Unable to connect to %s", me.uplink);
|
||||
} else {
|
||||
/* Call the IRC specific function send_server_connect to login as a server to IRC */
|
||||
send_server_connect (me.name, me.numeric, me.infoline, me.pass);
|
||||
send_server_connect (me.name, me.numeric, me.infoline, me.pass, (unsigned long)me.t_start, (unsigned long)me.now);
|
||||
read_loop ();
|
||||
}
|
||||
|
||||
|
|
2
mystic.c
2
mystic.c
|
@ -159,7 +159,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s", (ircd_srv.token ? TOK_PASS : MSG_PASS), pass);
|
||||
send_cmd ("%s %s %d :%s", (ircd_srv.token ? TOK_SERVER : MSG_SERVER), name, numeric, infoline);
|
||||
|
|
|
@ -143,7 +143,7 @@ send_server (const char *sender, const char *name, const int numeric, const char
|
|||
}
|
||||
|
||||
void
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass)
|
||||
send_server_connect (const char *name, const int numeric, const char *infoline, const char *pass, unsigned long tsboot, unsigned long tslink)
|
||||
{
|
||||
send_cmd ("%s %s :TS", MSG_PASS, pass);
|
||||
send_cmd ("CAPAB :TS EOB HUB PARA");
|
||||
|
|
Reference in a new issue