projects
/
srvx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added status "network"
[srvx.git]
/
src
/
chanserv.c
diff --git
a/src/chanserv.c
b/src/chanserv.c
index 4e41784b0aa289a7506251bd28bb6667740dcf5a..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))
@@
-4421,10
+4429,10
@@
static CHANSERV_FUNC(cmd_topic)
if(!isdigit(topic[pos]))
break;
}
if(!isdigit(topic[pos]))
break;
}
- if(advtopic_index < 0 || advtopic_index > MAXADVTOPICENTRIES)
+ if(advtopic_index < 0 || advtopic_index >
=
MAXADVTOPICENTRIES)
{
//invalid id!
{
//invalid id!
- reply("CSMSG_ADVTOPIC_INVALID_ID", advtopic_index);
+ reply("CSMSG_ADVTOPIC_INVALID_ID", advtopic_index
+1
);
return 0;
}
if(cData->advtopic[advtopic_index])
return 0;
}
if(cData->advtopic[advtopic_index])