summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 12:17:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 12:17:37 +0000
commitf9af620855b2bfe0d7d61a3f162e6790c7d1e882 (patch)
tree1eba0808a7573345f0c18aa6dc9961fde5ae4527 /src/commands.cpp
parent454f63b05dd6a7ba992b43f62c8191aa0340b3af (diff)
Added some u:line stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 6d31dc682..aa23b4b95 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1729,6 +1729,14 @@ void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char*
}
}
+void handle_H(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host)
+{
+ log(DEBUG,"Adding ULined server %s to my map",params);
+ ircd_connector s;
+ s.SetState(STATE_DISCONNECTED);
+ s.SetServerName(params);
+ source->connectors.push_back(s);
+}
void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host)
{
@@ -2514,6 +2522,8 @@ void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv)
serv->SendPacket(buffer,servername);
DoSync(me[j],servername);
NetSendMyRoutingTable();
+ sprintf(buffer,"H %s",servername);
+ NetSendToAllExcept(servername,buffer);
return;
}
}