ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_info.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_info.c (file contents):
Revision 3545 by michael, Fri May 16 11:00:20 2014 UTC vs.
Revision 3573 by michael, Fri May 16 17:09:50 2014 UTC

# Line 535 | Line 535 | static const struct InfoStruct info_tabl
535   static void
536   send_birthdate_online_time(struct Client *source_p)
537   {
538 <  sendto_one(source_p, ":%s %d %s :On-line since %s",
539 <             ID_or_name(&me, source_p), RPL_INFO,
540 <             ID_or_name(source_p, source_p),
541 <             myctime(me.localClient->firsttime));
538 >  sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
539 >                     ":On-line since %s",
540 >                     myctime(me.localClient->firsttime));
541   }
542  
543   /* send_conf_options()
# Line 562 | Line 561 | send_conf_options(struct Client *source_
561        {
562          const char *option = *((const char *const *)iptr->option);
563  
564 <        sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
565 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
566 <                   iptr->name, option ? option : "NONE",
567 <                   iptr->desc ? iptr->desc : "<none>");
564 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
565 >                           ":%-30s %-5s [%-30s]",
566 >                           iptr->name, option ? option : "NONE",
567 >                           iptr->desc ? iptr->desc : "<none>");
568          break;
569        }
570  
# Line 574 | Line 573 | send_conf_options(struct Client *source_
573        {
574          const char *option = iptr->option;
575  
576 <        sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
577 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
578 <                   iptr->name, option ? option : "NONE",
579 <                   iptr->desc ? iptr->desc : "<none>");
576 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
577 >                           ":%-30s %-5s [%-30s]",
578 >                           iptr->name, option ? option : "NONE",
579 >                           iptr->desc ? iptr->desc : "<none>");
580          break;
581        }
582  
# Line 586 | Line 585 | send_conf_options(struct Client *source_
585        {
586          const int option = *((const int *const)iptr->option);
587  
588 <        sendto_one(source_p, ":%s %d %s :%-30s %-5d [%-30s]",
589 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
590 <                   iptr->name, option, iptr->desc ? iptr->desc : "<none>");
588 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
589 >                           ":%-30s %-5d [%-30s]",
590 >                           iptr->name, option, iptr->desc ? iptr->desc : "<none>");
591          break;
592        }
593  
# Line 597 | Line 596 | send_conf_options(struct Client *source_
596        {
597          const int option = *((const int *const)iptr->option);
598  
599 <        sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
600 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
601 <                   iptr->name, option ? "ON" : "OFF",
602 <                   iptr->desc ? iptr->desc : "<none>");
599 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
600 >                           ":%-30s %-5s [%-30s]",
601 >                           iptr->name, option ? "ON" : "OFF",
602 >                           iptr->desc ? iptr->desc : "<none>");
603  
604          break;
605        }
# Line 610 | Line 609 | send_conf_options(struct Client *source_
609        {
610          const int option = *((const int *const)iptr->option);
611  
612 <        sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
613 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
614 <                   iptr->name, option ? "YES" : "NO",
615 <                   iptr->desc ? iptr->desc : "<none>");
612 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
613 >                           ":%-30s %-5s [%-30s]",
614 >                           iptr->name, option ? "YES" : "NO",
615 >                           iptr->desc ? iptr->desc : "<none>");
616          break;
617        }
618  
# Line 621 | Line 620 | send_conf_options(struct Client *source_
620        {
621          const int option = *((const int *const)iptr->option);
622  
623 <        sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",
624 <                   ID_or_name(&me, source_p), RPL_INFO, ID_or_name(source_p, source_p),
625 <                   iptr->name, option ? ((option == 1) ? "MASK" : "YES") : "NO",
626 <                   iptr->desc ? iptr->desc : "<none>");
623 >        sendto_one_numeric(source_p, &me, RPL_INFO|SND_EXPLICIT,
624 >                           ":%-30s %-5s [%-30s]",
625 >                           iptr->name, option ? ((option == 1) ? "MASK" : "YES") : "NO",
626 >                           iptr->desc ? iptr->desc : "<none>");
627          break;
628        }
629      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines