]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Added idea from ircu: /invite with too few params shows the channels youve been invit...
[user/henk/code/inspircd.git] / src / users.cpp
index 9d0367a9a062e19fb4edf5f6673cdc64fb3ccd1a..6fca08abc4424832fcf501a245843d1f1dd80e0d 100644 (file)
@@ -36,7 +36,6 @@ userrec::userrec()
        strcpy(dhost,"");
        strcpy(fullname,"");
        strcpy(modes,"");
-       strcpy(inbuf,"");
        strcpy(server,"");
        strcpy(awaymsg,"");
        strcpy(oper,"");
@@ -86,6 +85,11 @@ bool userrec::IsInvited(char* channel)
        return false;
 }
 
+InvitedList* userrec::GetInviteList()
+{
+       return &invites;
+}
+
 void userrec::InviteTo(char* channel)
 {
        Invited i;
@@ -183,6 +187,11 @@ bool userrec::AddBuffer(std::string a)
                if (recvq[i++] == '\n')
                        break;
        }
+       if (recvq.length() > this->recvqmax)
+       {
+               this->SetWriteError("RecvQ exceeded");
+               WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
+       }
        // return false if we've had more than 600 characters WITHOUT
        // a carriage return (this is BAD, drop the socket)
        return (i < 600);