ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/user.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/user.c (file contents):
Revision 9682 by michael, Tue Sep 29 12:51:21 2020 UTC vs.
Revision 9683 by michael, Wed Oct 28 18:56:24 2020 UTC

# Line 51 | Line 51
51   #include "isupport.h"
52   #include "tls.h"
53   #include "patchlevel.h"
54 + #include "server_capab.h" /* TBR: RHOST compatibility mode */
55  
56   static char umode_buffer[UMODE_MAX_STR];
57  
# Line 218 | Line 219 | introduce_client(struct Client *client)
219      if (server == client->from)
220        continue;
221  
222 <    sendto_one(server, ":%s UID %s %u %ju %s %s %s %s %s %s %s :%s",
223 <               client->servptr->id,
224 <               client->name, client->hopcount+1,
225 <               client->tsinfo,
226 <               buf, client->username, client->host, client->realhost,
227 <               client->sockhost, client->id,
228 <               client->account,
229 <               client->info);
222 >    /* TBR: compatibility mode */
223 >    if (IsCapable(server, CAPAB_RHOST))
224 >      sendto_one(server, ":%s UID %s %u %ju %s %s %s %s %s %s %s :%s",
225 >                 client->servptr->id,
226 >                 client->name, client->hopcount+1,
227 >                 client->tsinfo,
228 >                 buf, client->username, client->host, client->realhost,
229 >                 client->sockhost, client->id,
230 >                 client->account,
231 >                 client->info);
232 >    else
233 >      sendto_one(server, ":%s UID %s %u %ju %s %s %s %s %s %s :%s",
234 >                 client->servptr->id,
235 >                 client->name, client->hopcount+1,
236 >                 client->tsinfo,
237 >                 buf, client->username, client->host,
238 >                 client->sockhost, client->id,
239 >                 client->account,
240 >                 client->info);
241  
242      if (!EmptyString(client->tls_certfp))
243        sendto_one(server, ":%s CERTFP %s", client->id, client->tls_certfp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines