urls are now properly identified if the topic is scrolled
[quassel.git] / src / common / network.h
index 3759e56..6631043 100644 (file)
 #include "syncableobject.h"
 
 #include "signalproxy.h"
-#include "ircuser.h"
 #include "ircchannel.h"
 
+class IrcUser;
+
 // defined below!
 struct NetworkInfo;
 
@@ -97,7 +98,7 @@ public:
   inline void setProxy(SignalProxy *proxy) { _proxy = proxy; }
 
   inline bool isMyNick(const QString &nick) const { return (myNick().toLower() == nick.toLower()); }
-  inline bool isMe(IrcUser *ircuser) const { return (ircuser->nick().toLower() == myNick().toLower()); }
+  inline bool isMe(IrcUser *ircuser) const { return (ircuser == me()); }
 
   bool isChannelName(const QString &channelname) const;