/[svn]/ircd-hybrid/trunk/modules/core/m_server.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/core/m_server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4658 by michael, Sun Sep 21 10:58:38 2014 UTC revision 4659 by michael, Tue Sep 23 15:34:00 2014 UTC
# Line 449  mr_server(struct Client *source_p, int p Line 449  mr_server(struct Client *source_p, int p
449    char *name = NULL;    char *name = NULL;
450    struct Client *target_p = NULL;    struct Client *target_p = NULL;
451    
452    if (EmptyString(parv[3]))    if (EmptyString(parv[parc - 1]))
453    {    {
454      exit_client(source_p, "No server description supplied");      exit_client(source_p, "No server description supplied");
455      return 0;      return 0;
# Line 606  mr_server(struct Client *source_p, int p Line 606  mr_server(struct Client *source_p, int p
606     * connect{} block in source_p->name     * connect{} block in source_p->name
607     */     */
608    strlcpy(source_p->name, name, sizeof(source_p->name));    strlcpy(source_p->name, name, sizeof(source_p->name));
609    set_server_gecos(source_p, parv[3]);    set_server_gecos(source_p, parv[parc - 1]);
610    source_p->hopcount = atoi(parv[2]);    source_p->hopcount = atoi(parv[2]);
611    server_estab(source_p);    server_estab(source_p);
612    return 0;    return 0;
# Line 633  ms_sid(struct Client *source_p, int parc Line 633  ms_sid(struct Client *source_p, int parc
633    if (!IsServer(source_p))    if (!IsServer(source_p))
634      return 0;      return 0;
635    
636    if (EmptyString(parv[4]))    if (EmptyString(parv[parc - 1]))
637    {    {
638      exit_client(client_p, "No server description supplied");      exit_client(client_p, "No server description supplied");
639      return 0;      return 0;
# Line 779  ms_sid(struct Client *source_p, int parc Line 779  ms_sid(struct Client *source_p, int parc
779    strlcpy(target_p->name, parv[1], sizeof(target_p->name));    strlcpy(target_p->name, parv[1], sizeof(target_p->name));
780    strlcpy(target_p->id, parv[3], sizeof(target_p->id));    strlcpy(target_p->id, parv[3], sizeof(target_p->id));
781    
782    set_server_gecos(target_p, parv[4]);    set_server_gecos(target_p, parv[parc - 1]);
783    SetServer(target_p);    SetServer(target_p);
784    
785    if (find_matching_name_conf(CONF_SERVICE, target_p->name, NULL, NULL, 0))    if (find_matching_name_conf(CONF_SERVICE, target_p->name, NULL, NULL, 0))

Legend:
Removed from v.4658  
changed lines
  Added in v.4659

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28