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" |
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. |
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. |