Let RemotePeer(s) tell their protocol type and features
[quassel.git] / src / common / protocols / legacy / legacypeer.h
index d364c6c..1d09dd6 100644 (file)
@@ -42,7 +42,8 @@ public:
     };
 
     LegacyPeer(AuthHandler *authHandler, QTcpSocket *socket, QObject *parent = 0);
-    ~LegacyPeer() {}
+
+    Protocol::Type protocol() const { return Protocol::LegacyProtocol; }
 
     void setSignalProxy(SignalProxy *proxy);