]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_cap.c
Add to the descriptions of owner and halfop in refrence.conf.
[irc/rqf/shadowircd.git] / modules / m_cap.c
index 998d8f0d1966cd597543a925aa80e7cec62c2ce5..94aebaca8eee25f3cf679088d28a127714b8de64 100644 (file)
@@ -33,7 +33,7 @@
 #include "stdinc.h"
 #include "class.h"
 #include "client.h"
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "msg.h"
@@ -319,7 +319,7 @@ cap_end(struct Client *source_p, const char *arg)
 
        source_p->flags &= ~FLAGS_CLICAP;
 
-       if(source_p->name[0] && source_p->user)
+       if(source_p->name[0] && source_p->flags & FLAGS_SENTUSER)
        {
                char buf[USERLEN+1];
                rb_strlcpy(buf, source_p->username, sizeof(buf));