Add checkParamCount() which stops the event if something's wrong
[quassel.git] / src / core / coresessioneventprocessor.h
index 7ed9fe4..4d7559d 100644 (file)
@@ -24,7 +24,8 @@
 #include <QObject>
 
 class CoreSession;
-class Event;
+class IrcEvent;
+class IrcEventNumeric;
 
 class CoreSessionEventProcessor : public QObject {
   Q_OBJECT
@@ -34,7 +35,10 @@ public:
 
   inline CoreSession *coreSession() const { return _coreSession; }
 
+  Q_INVOKABLE void processIrcEventNumeric(IrcEventNumeric *event);
+
 protected:
+  bool checkParamCount(IrcEvent *event, int minParams);
 
 private:
   CoreSession *_coreSession;