]> jfr.im git - irc/quakenet/snircd.git/blobdiff - ircd/m_invite.c
Update my e-mail address.
[irc/quakenet/snircd.git] / ircd / m_invite.c
index 0d87642b28b16f84e720a5488802d663ed6d11ca..7a121eceb8c688d86255e8ffc5e17523d1764fe6 100644 (file)
@@ -166,6 +166,11 @@ int m_invite(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 
   /* If we get here, it was a VALID and meaningful INVITE */
 
+  if (IsAccountOnly(acptr) && !IsAccount(sptr) && !IsOper(sptr)) {
+    send_reply(sptr, ERR_ACCOUNTONLY, cli_name(acptr), feature_str(FEAT_URLREG));
+    return 0;
+  }
+  
   if (check_target_limit(sptr, acptr, cli_name(acptr), 0))
     return 0;