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
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_admin.c
diff --git
a/ircd/m_admin.c
b/ircd/m_admin.c
index e9b44883fd70c2973ebccd73c291f3fc555161ac..8c4908ec8d59c3ec14af3042a1ffdd001bad409e 100644
(file)
--- a/
ircd/m_admin.c
+++ b/
ircd/m_admin.c
@@
-84,15
+84,17
@@
#include "client.h"
#include "hash.h"
#include "ircd.h"
#include "client.h"
#include "hash.h"
#include "ircd.h"
-#include "ircd_policy.h"
+#include "ircd_features.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_reply.h"
+#include "match.h"
#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
#include "s_conf.h"
#include "s_user.h"
#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
#include "s_conf.h"
#include "s_user.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
static int send_admin_info(struct Client* sptr)
{
static int send_admin_info(struct Client* sptr)
{
@@
-118,7
+120,7
@@
int m_admin(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
assert(0 != cptr);
assert(cptr == sptr);
assert(0 != cptr);
assert(cptr == sptr);
- if (parc > 1)
+ 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);
@@
-135,8
+137,8
@@
int mo_admin(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
assert(0 != cptr);
assert(cptr == sptr);
assert(0 != cptr);
assert(cptr == sptr);
- if (hunt_server_cmd(sptr, CMD_ADMIN, cptr,
HEAD_IN_SAND_REMOTE, ":%C", 1,
- parc, parv) != HUNTED_ISME)
+ if (hunt_server_cmd(sptr, CMD_ADMIN, cptr,
feature_int(FEAT_HIS_REMOTE),
+
":%C", 1,
parc, parv) != HUNTED_ISME)
return 0;
return send_admin_info(sptr);
}
return 0;
return send_admin_info(sptr);
}