Skip to content

Commit b1e9fac

Browse files
committed
split oper:spy in to oper:spy_user and oper:spy_channel
1 parent 8e239de commit b1e9fac

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

include/s_newconf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ extern void cluster_generic(struct Client *, const char *, int cltype,
156156
#define IsOperHiddenAdmin(x) (HasPrivilege((x), "oper:hidden_admin"))
157157
#define IsOperAdmin(x) (HasPrivilege((x), "oper:admin") || HasPrivilege((x), "oper:hidden_admin"))
158158
#define IsOperOperwall(x) (HasPrivilege((x), "oper:operwall"))
159-
#define IsOperSpy(x) (HasPrivilege((x), "oper:spy"))
159+
#define IsOperSpyChannel(x) (HasPrivilege((x), "oper:spy_channel"))
160+
#define IsOperSpyUser(x) (HasPrivilege((x), "oper:spy_user"))
160161
#define IsOperInvis(x) (HasPrivilege((x), "oper:hidden"))
161162
#define IsOperRemoteBan(x) (HasPrivilege((x), "oper:remoteban"))
162163
#define IsOperMassNotice(x) (HasPrivilege((x), "oper:mass_notice"))

modules/core/m_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ m_mode(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
8585

8686
dest = parv[1];
8787

88-
if(IsOperSpy(source_p) && *dest == '!')
88+
if(IsOperSpyChannel(source_p) && *dest == '!')
8989
{
9090
dest++;
9191
operspy = 1;

modules/m_etrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ m_chantrace(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
236236

237237
name = parv[1];
238238

239-
if(IsOperSpy(source_p) && parv[1][0] == '!')
239+
if(IsOperSpyChannel(source_p) && parv[1][0] == '!')
240240
{
241241
name++;
242242
operspy = 1;
@@ -347,7 +347,7 @@ mo_masktrace(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *so
347347
name = LOCAL_COPY(parv[1]);
348348
collapse(name);
349349

350-
if(IsOperSpy(source_p) && parv[1][0] == '!')
350+
if(IsOperSpyUser(source_p) && parv[1][0] == '!')
351351
{
352352
name++;
353353
mask++;

modules/m_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mo_list(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
183183
args = LOCAL_COPY(parv[1]);
184184
}
185185

186-
if (args && *args == '!' && IsOperSpy(source_p))
186+
if (args && *args == '!' && IsOperSpyChannel(source_p))
187187
{
188188
args++;
189189
report_operspy(source_p, "LIST", args);

modules/m_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ scan_umodes(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
187187
}
188188
if (target_list == &global_client_list && list_users)
189189
{
190-
if (IsOperSpy(source_p))
190+
if (IsOperSpyUser(source_p))
191191
{
192192
if (!ConfigFileEntry.operspy_dont_care_user_info)
193193
{

modules/m_topic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ m_topic(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
7474

7575
name = parv[1];
7676

77-
if(IsOperSpy(source_p) && parv[1][0] == '!')
77+
if(IsOperSpyChannel(source_p) && parv[1][0] == '!')
7878
{
7979
name++;
8080
operspy = 1;

modules/m_whois.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ do_whois(struct Client *client_p, struct Client *source_p, int parc, const char
181181
if((p = strchr(nick, ',')))
182182
*p = '\0';
183183

184-
if(IsOperSpy(source_p) && *nick == '!')
184+
if(IsOperSpyUser(source_p) && *nick == '!')
185185
{
186186
operspy = 1;
187187
nick++;

0 commit comments

Comments
 (0)