projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a42b8b3
)
added status "network"
author
NurPech
<nurpech@nurpech.de>
Sun, 19 May 2013 00:33:59 +0000
(
02:33
+0200)
committer
NurPech
<nurpech@nurpech.de>
Sun, 19 May 2013 00:33:59 +0000
(
02:33
+0200)
added status "operator"
src/chanserv.c
patch
|
blob
|
history
src/nickserv.h
patch
|
blob
|
history
diff --git
a/src/chanserv.c
b/src/chanserv.c
index 887b95aaa3c4e8ffb8b40ed44f42d253894bf04a..d99ed500156bbe6f9c9309562920ba34fe271ee2 100644
(file)
--- a/
src/chanserv.c
+++ b/
src/chanserv.c
@@
-4167,6
+4167,8
@@
cmd_list_users(struct userNode *user, struct chanNode *channel, unsigned int arg
ary[1] = uData->handle->handle;
if(uData->present)
ary[2] = "Here";
ary[1] = uData->handle->handle;
if(uData->present)
ary[2] = "Here";
+ else if(HANDLE_FLAGGED(uData->handle, NETWORK))
+ ary[2] = "Here";
else if(!uData->seen)
ary[2] = "Never";
else
else if(!uData->seen)
ary[2] = "Never";
else
@@
-4174,6
+4176,12
@@
cmd_list_users(struct userNode *user, struct chanNode *channel, unsigned int arg
ary[2] = strdup(ary[2]);
if(IsUserSuspended(uData))
ary[3] = "Suspended";
ary[2] = strdup(ary[2]);
if(IsUserSuspended(uData))
ary[3] = "Suspended";
+ else if(HANDLE_FLAGGED(uData->handle, OPER))
+ ary[3] = "Operator";
+ else if(HANDLE_FLAGGED(uData->handle, HELPING))
+ ary[3] = "Staff";
+ else if(HANDLE_FLAGGED(uData->handle, NETWORK))
+ ary[3] = "Network";
else if(HANDLE_FLAGGED(uData->handle, FROZEN))
ary[3] = "Vacation";
else if(HANDLE_FLAGGED(uData->handle, BOT))
else if(HANDLE_FLAGGED(uData->handle, FROZEN))
ary[3] = "Vacation";
else if(HANDLE_FLAGGED(uData->handle, BOT))
diff --git
a/src/nickserv.h
b/src/nickserv.h
index bfe7c0bcacbceb7cdcbac97f70a4cdb51758e890..322170e2825422abdfb1b805b17a7df2a0548c67 100644
(file)
--- a/
src/nickserv.h
+++ b/
src/nickserv.h
@@
-40,9
+40,11
@@
struct svccmd;
#define HI_FLAG_BOT 0x00000200
#define HI_FLAG_AUTOHIDE 0x00000400
#define HI_FLAG_INVI 0x00000800
#define HI_FLAG_BOT 0x00000200
#define HI_FLAG_AUTOHIDE 0x00000400
#define HI_FLAG_INVI 0x00000800
+#define HI_FLAG_OPER 0x00001000
+#define HI_FLAG_NETWORK 0x00002000
/* Flag characters for the above. First char is LSB, etc. */
/* Flag characters for the above. First char is LSB, etc. */
-#define HANDLE_FLAGS "SphgscfnHbxI"
+#define HANDLE_FLAGS "SphgscfnHbxI
oN
"
/* HI_STYLE_* go into handle_info.userlist_style */
#define HI_STYLE_DEF 'd'
/* HI_STYLE_* go into handle_info.userlist_style */
#define HI_STYLE_DEF 'd'