+ QAction *action = nickContextMenu.exec(QCursor::pos());
+ BufferInfo bufferInfo = bufferInfoFromModelIndex(index);
+
+ if(action == whoisAction) { executeCommand(bufferInfo, QString("/WHOIS %1 %1").arg(nick)); }
+ else if(action == versionAction) { executeCommand(bufferInfo, QString("/CTCP %1 VERSION").arg(nick)); }
+ else if(action == pingAction) { executeCommand(bufferInfo, QString("/CTCP %1 PING ").arg(nick)); }
+
+ else if(action == opAction) { executeCommand(bufferInfo, QString("/OP %1").arg(nick)); }
+ else if(action == deOpAction) { executeCommand(bufferInfo, QString("/DEOP %1").arg(nick)); }
+ else if(action == voiceAction) { executeCommand(bufferInfo, QString("/VOICE %1").arg(nick)); }
+ else if(action == deVoiceAction) { executeCommand(bufferInfo, QString("/DEVOICE %1").arg(nick)); }
+
+ else if(action == kickAction) { executeCommand(bufferInfo, QString("/KICK %1").arg(nick)); }
+ else if(action == banAction) { executeCommand(bufferInfo, QString("/BAN %1").arg(nick)); }
+ else if(action == kickBanAction) { executeCommand(bufferInfo, QString("/KICK %1").arg(nick));
+ executeCommand(bufferInfo, QString("/BAN %1").arg(nick)); }
+ else if(action == queryAction) { startQuery(index); }
+
+}