projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bugs reported in SF#1691357.
[ircu2.10.12-pk.git]
/
ircd
/
m_admin.c
diff --git
a/ircd/m_admin.c
b/ircd/m_admin.c
index bfaa78c46e5b5c14bf172c50694d3aca2bd57509..8c4908ec8d59c3ec14af3042a1ffdd001bad409e 100644
(file)
--- a/
ircd/m_admin.c
+++ b/
ircd/m_admin.c
@@
-87,6
+87,7
@@
#include "ircd_features.h"
#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_features.h"
#include "ircd_log.h"
#include "ircd_reply.h"
+#include "match.h"
#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
@@
-116,12
+117,10
@@
static int send_admin_info(struct Client* sptr)
*/
int m_admin(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
*/
int m_admin(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
{
- struct Client *acptr;
-
assert(0 != cptr);
assert(cptr == sptr);
assert(0 != cptr);
assert(cptr == sptr);
- if (parc > 1 &&
(!(acptr = find_match_server(parv[1])) || !IsMe(acptr
)))
+ if (parc > 1 &&
match(parv[1], cli_name(&me
)))
return send_reply(sptr, ERR_NOPRIVILEGES);
return send_admin_info(sptr);
return send_reply(sptr, ERR_NOPRIVILEGES);
return send_admin_info(sptr);