Skip to content

Commit 69fcc34

Browse files
Remove unused UTC and includes
Found by: https://github.com/michaelortmann/ Patch by: https://github.com/michaelortmann/
1 parent 7afd957 commit 69fcc34

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

src/mod/ctcp.mod/ctcp.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "ctcp.h"
2828
#include "src/mod/module.h"
2929
#include "server.mod/server.h"
30-
#include <netinet/in.h>
31-
#include <arpa/inet.h>
3230

3331
static Function *global = NULL, *server_funcs = NULL;
3432

@@ -110,8 +108,6 @@ static int ctcp_CLIENTINFO(char *nick, char *uhosr, char *handle,
110108
p = CLIENTINFO_ACTION;
111109
else if (!strcasecmp(msg, "dcc"))
112110
p = CLIENTINFO_DCC;
113-
else if (!strcasecmp(msg, "utc"))
114-
p = CLIENTINFO_UTC;
115111
else if (!strcasecmp(msg, "ping"))
116112
p = CLIENTINFO_PING;
117113
else if (!strcasecmp(msg, "echo"))

src/mod/ctcp.mod/ctcp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#ifndef _EGG_MOD_CTCP_CTCP_H
2525
#define _EGG_MOD_CTCP_CTCP_H
2626

27-
#define CLIENTINFO "SED VERSION CLIENTINFO USERINFO ERRMSG FINGER TIME ACTION DCC UTC PING ECHO :Use CLIENTINFO <COMMAND> to get more specific information"
27+
#define CLIENTINFO "SED VERSION CLIENTINFO USERINFO ERRMSG FINGER TIME ACTION DCC PING ECHO :Use CLIENTINFO <COMMAND> to get more specific information"
2828
#define CLIENTINFO_SED "SED contains simple_encrypted_data"
2929
#define CLIENTINFO_VERSION "VERSION shows client type, version and environment"
3030
#define CLIENTINFO_CLIENTINFO "CLIENTINFO gives information about available CTCP commands"
@@ -34,7 +34,6 @@
3434
#define CLIENTINFO_TIME "TIME tells you the time on the user's host"
3535
#define CLIENTINFO_ACTION "ACTION contains action descriptions for atmosphere"
3636
#define CLIENTINFO_DCC "DCC requests a direct_client_connection"
37-
#define CLIENTINFO_UTC "UTC substitutes the local timezone"
3837
#define CLIENTINFO_PING "PING returns the arguments it receives"
3938
#define CLIENTINFO_ECHO "ECHO returns the arguments it receives"
4039

0 commit comments

Comments
 (0)