Skip to content

Commit df51ef6

Browse files
author
drscholl
committed
changed rehash numeric to 10117 to avoid conflict with old server ping
numeric added `rehash' to the list of operserv commands
1 parent 9e47433 commit df51ef6

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README

+5-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,11 @@ are implemented as additional functionality in the opennap server.
345345
currently in use, otherwise it will be -1
346346
<numusers> number of registered users
347347

348-
10116 rehash (reload) configuration files [CLIENT]
348+
10116 server ping [DEPRECATED]
349+
350+
note: there is now a defined command for this in napster.txt
351+
352+
10117 rehash (reload) configuration files [CLIENT]
349353

350354
Format: [server]
351355

opennap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ void set_val (char *d, unsigned short val);
586586
#define MSG_SERVER_LINKS 10112
587587
#define MSG_CLIENT_USAGE_STATS 10115 /* server usage stats */
588588
#define MSG_SERVER_USAGE_STATS 10115
589-
#define MSG_CLIENT_REHASH 10116 /* reload config file */
589+
#define MSG_CLIENT_REHASH 10117 /* reload config file */
590590
#define MSG_CLIENT_REGISTER_USER 10200
591591
#define MSG_CLIENT_CHANNEL_LEVEL 10201 /* set min channel user level */
592592
#define MSG_CLIENT_KICK_USER 10202 /* deprecated, use 829 instead*/

privmsg.c

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ operserv (CONNECTION * con, char *pkt)
6464
tag = MSG_CLIENT_OP_LIST;
6565
else if (!strcasecmp ("deop", cmd))
6666
tag = MSG_CLIENT_DEOP;
67+
else if (!strcasecmp ("rehash", cmd))
68+
tag = MSG_CLIENT_REHASH;
6769
else if (!strcasecmp ("help", cmd))
6870
{
6971
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ Help for OperServ:");
@@ -76,6 +78,7 @@ operserv (CONNECTION * con, char *pkt)
7678
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ links");
7779
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ reconfig");
7880
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ register");
81+
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ rehash [server]");
7982
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ stats");
8083
send_cmd (con, MSG_CLIENT_PRIVMSG, "OperServ usermode");
8184
send_cmd (con, MSG_CLIENT_PRIVMSG,

0 commit comments

Comments
 (0)