diff -r 39c2196a29d7 include/struct.h
--- a/include/struct.h	Fri Jan 20 21:25:59 2012 +0100
+++ b/include/struct.h	Sun Jan 22 03:30:52 2012 -0600
@@ -368,6 +368,7 @@
 #define PROTO_CLK		0x8000	/* Send cloaked host in the NICK command (regardless of +x/-x) */
 #define PROTO_UHNAMES	0x10000  /* Send n!u@h in NAMES */
 #define PROTO_CLICAP	0x20000  /* client capability negotiation in process */
+#define PROTO_STARTTLS	0x40000	 /* client supports STARTTLS */
 
 /*
  * flags macros.
diff -r 39c2196a29d7 src/modules/m_cap.c
--- a/src/modules/m_cap.c	Fri Jan 20 21:25:59 2012 +0100
+++ b/src/modules/m_cap.c	Sun Jan 22 03:30:52 2012 -0600
@@ -73,6 +73,9 @@
 
 static struct clicap clicap_table[] = {
 	{"multi-prefix", PROTO_NAMESX, CLICAP_FLAGS_NONE},
+#ifdef USE_SSL
+	{"tls", PROTO_STARTTLS, CLICAP_FLAGS_NONE},
+#endif
 	{"userhost-in-names", PROTO_UHNAMES, CLICAP_FLAGS_NONE},
 };
 
