X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=66310436f9f2019078f0eb94af4b2c630ccdba89;hp=3759e565f103b54c9618c02f18d4b0e42b2d9ada;hb=09312db1a755642802ff15595900878fbe76b21a;hpb=115bbb2413a028a2b05afd4658fd9fe9c86953d7 diff --git a/src/common/network.h b/src/common/network.h index 3759e565..66310436 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -33,9 +33,10 @@ #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;