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

Comparing ircd-hybrid/trunk/modules/m_admin.c (file contents):
Revision 3181 by michael, Thu Mar 20 16:38:37 2014 UTC vs.
Revision 3300 by michael, Sat Apr 12 18:26:22 2014 UTC

# Line 26 | Line 26
26  
27   #include "stdinc.h"
28   #include "client.h"
29 + #include "irc_string.h"
30   #include "ircd.h"
31   #include "numeric.h"
32   #include "conf.h"
# Line 50 | Line 51 | do_admin(struct Client *source_p)
51  
52    sendto_one_numeric(source_p, &me, RPL_ADMINME, me.name);
53  
54 <  if (AdminInfo.name != NULL)
54 >  if (!EmptyString(AdminInfo.name))
55      sendto_one_numeric(source_p, &me, RPL_ADMINLOC1, AdminInfo.name);
56 <  if (AdminInfo.description != NULL)
56 >  if (!EmptyString(AdminInfo.description))
57      sendto_one_numeric(source_p, &me, RPL_ADMINLOC2, AdminInfo.description);
58 <  if (AdminInfo.email != NULL)
58 >  if (!EmptyString(AdminInfo.email))
59      sendto_one_numeric(source_p, &me, RPL_ADMINEMAIL, AdminInfo.email);
60   }
61  
62 < /*! \brief ADMIN command handler (called by already registered,
62 < *         locally connected clients)
62 > /*! \brief ADMIN command handler
63   *
64   * \param source_p Pointer to allocated Client struct from which the message
65   *                 originally comes from.  This can be a local or remote client.
# Line 92 | Line 92 | m_admin(struct Client *source_p, int par
92    return 0;
93   }
94  
95 < /*! \brief ADMIN command handler (called by operators and
96 < *         remotely connected clients)
95 > /*! \brief ADMIN command handler
96   *
97   * \param source_p Pointer to allocated Client struct from which the message
98   *                 originally comes from.  This can be a local or remote client.

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)