projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added basic ssl support to ircu
[ircu2.10.12-pk.git]
/
ircd
/
m_proto.c
diff --git
a/ircd/m_proto.c
b/ircd/m_proto.c
index 9abd3d1c1699a3c45424fd5ec231ffd25af70e07..4bf0a068534d6affb809566ae9d8111d469d4a1f 100644
(file)
--- a/
ircd/m_proto.c
+++ b/
ircd/m_proto.c
@@
-22,20
+22,16
@@
*
* $Id$
*/
*
* $Id$
*/
-#if 0
-/*
- * No need to include handlers.h here the signatures must match
- * and we don't need to force a rebuild of all the handlers everytime
- * we add a new one to the list. --Bleep
- */
-#include "handlers.h"
-#endif /* 0 */
+#include "config.h"
+
#include "client.h"
#include "ircd.h"
#include "ircd_alloc.h"
#include "ircd_chattr.h"
#include "client.h"
#include "ircd.h"
#include "ircd_alloc.h"
#include "ircd_chattr.h"
+#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
#include "ircd_reply.h"
#include "ircd_string.h"
+#include "msg.h"
#include "numeric.h"
#include "numnicks.h"
#include "s_debug.h"
#include "numeric.h"
#include "numnicks.h"
#include "s_debug.h"
@@
-44,7
+40,7
@@
#include "supported.h"
#include "version.h"
#include "supported.h"
#include "version.h"
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-108,6
+104,7
@@
static const char* const PROTO_REQ = "REQ";
static const char* const PROTO_ACK = "ACK";
static const char* const PROTO_REQ = "REQ";
static const char* const PROTO_ACK = "ACK";
+static const char* const PROTO_SUP = "SUP";
int proto_handle_ack(struct Client* cptr, const char* msg)
{
int proto_handle_ack(struct Client* cptr, const char* msg)
{
@@
-130,8
+127,9
@@
int proto_handle_req(struct Client* cptr, const char* msg)
int proto_send_supported(struct Client* cptr)
{
/*
int proto_send_supported(struct Client* cptr)
{
/*
- * send
to_one(cptr, RPL_PROTOLIST, me.name, cptr->name
, "stuff");
+ * send
_reply(cptr, RPL_PROTOLIST
, "stuff");
*/
*/
+ sendcmdto_one(&me,CMD_PROTO,cptr,"%s unet1 1 1",PROTO_SUP);
return 0;
}
return 0;
}
@@
-148,6
+146,9
@@
int m_proto(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
else if (0 == ircd_strcmp(PROTO_ACK, parv[1]))
return proto_handle_ack(cptr, parv[2]);
else if (0 == ircd_strcmp(PROTO_ACK, parv[1]))
return proto_handle_ack(cptr, parv[2]);
+
+ else if (0 == ircd_strcmp(PROTO_SUP, parv[1]))
+ return 0; /* ignore it */
return 0;
}
return 0;
}