+ IrcUser *ircUser = network()->newIrcUser(params[0]);
+ QString modeString(serverDecode(params[1]));
+ QString addModes;
+ QString removeModes;
+ bool add = false;
+ for(int c = 0; c < modeString.count(); c++) {
+ if(modeString[c] == '+') {
+ add = true;
+ continue;
+ }
+ if(modeString[c] == '-') {
+ add = false;
+ continue;
+ }
+ if(add)
+ addModes += modeString[c];
+ else
+ removeModes += modeString[c];
+ }
+ if(!addModes.isEmpty())
+ ircUser->addUserModes(addModes);
+ if(!removeModes.isEmpty())
+ ircUser->removeUserModes(removeModes);
+