/[svn]/ircd-hybrid-8/modules/m_info.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/m_info.c

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

revision 1317 by michael, Sun Mar 25 11:24:18 2012 UTC revision 1318 by michael, Wed Mar 28 11:18:54 2012 UTC
# Line 24  Line 24 
24    
25  #include "stdinc.h"  #include "stdinc.h"
26  #include "list.h"  #include "list.h"
 #include "m_info.h"  
27  #include "channel.h"  #include "channel.h"
28  #include "client.h"  #include "client.h"
29  #include "irc_string.h"  #include "irc_string.h"
# Line 64  struct InfoStruct Line 63  struct InfoStruct
63  static const struct InfoStruct info_table[] =  static const struct InfoStruct info_table[] =
64  {  {
65    /* --[  START OF TABLE  ]-------------------------------------------- */    /* --[  START OF TABLE  ]-------------------------------------------- */
66    
67      {
68        "CPATH",
69        OUTPUT_STRING,
70        &ConfigFileEntry.configfile,
71        "Path to Main Configuration File"
72      },
73      {
74        "DPATH",
75        OUTPUT_STRING,
76        &ConfigFileEntry.dpath,
77        "Directory Containing Configuration Files"
78      },
79      {
80        "DLPATH",
81        OUTPUT_STRING,
82        &ConfigFileEntry.dlinefile,
83        "Path to D-line File"
84      },
85      {
86        "KPATH",
87        OUTPUT_STRING,
88        &ConfigFileEntry.klinefile,
89        "Path to K-line File"
90      },
91    {    {
92      "network_name",      "network_name",
93      OUTPUT_STRING,      OUTPUT_STRING,
# Line 632  send_birthdate_online_time(struct Client Line 656  send_birthdate_online_time(struct Client
656  static void  static void
657  send_conf_options(struct Client *source_p)  send_conf_options(struct Client *source_p)
658  {  {
   Info *infoptr;  
659    const char *from, *to;    const char *from, *to;
660    const struct InfoStruct *iptr = NULL;    const struct InfoStruct *iptr = NULL;
661    
# Line 650  send_conf_options(struct Client *source_ Line 673  send_conf_options(struct Client *source_
673      to = source_p->name;      to = source_p->name;
674    }    }
675    
   for (infoptr = MyInformation; infoptr->name; infoptr++)  
   {  
     if (infoptr->intvalue)  
     {  
       sendto_one(source_p, ":%s %d %s :%-30s %-5d [%-30s]",  
                  from, RPL_INFO, to, infoptr->name,  
                  infoptr->intvalue, infoptr->desc);  
     }  
     else  
     {  
       sendto_one(source_p, ":%s %d %s :%-30s %-5s [%-30s]",  
                  from, RPL_INFO, to, infoptr->name,  
                  infoptr->strvalue, infoptr->desc);  
     }  
   }  
   
676    /*    /*
677     * Parse the info_table[] and do the magic.     * Parse the info_table[] and do the magic.
678     */     */

Legend:
Removed from v.1317  
changed lines
  Added in v.1318

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