]> 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 f394caeb1e6a46c9d58b162806db73bd3acd4c13..94aebaca8eee25f3cf679088d28a127714b8de64 100644 (file)
@@ -69,8 +69,7 @@ static struct clicap
        int namelen;
 } clicap_list[] = {
        _CLICAP("multi-prefix", CLICAP_MULTI_PREFIX, 0, 0),
-       _CLICAP("sasl", CLICAP_SASL, 0, 0),
-       _CLICAP("presence", CLICAP_PRESENCE, 0, 0)
+       _CLICAP("sasl", CLICAP_SASL, 0, 0)
 };
 
 #define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))
@@ -320,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));