Quassel now handles even huge ChatScenes without slowing to a crawl.
[quassel.git] / src / common / network.h
index 29d5749..bf430f8 100644 (file)
@@ -95,6 +95,7 @@ public:
   QString networkName() const;
   QString currentServer() const;
   QString myNick() const;
+  inline IrcUser *me() const { return ircUser(myNick()); }
   IdentityId identity() const;
   QStringList nicks() const;
   QStringList channels() const;
@@ -181,6 +182,7 @@ public slots:
   void removeSupport(const QString &param);
 
   inline void addIrcUser(const QString &hostmask) { newIrcUser(hostmask); }
+  inline void addIrcChannel(const QString &channel) { newIrcChannel(channel); }
   void removeIrcUser(const QString &nick);
   void removeIrcChannel(const QString &channel);
 
@@ -208,6 +210,7 @@ public slots:
   void emitConnectionError(const QString &);
 
 private slots:
+  void ircUserDestroyed();
   void channelDestroyed();
   void removeIrcUser(IrcUser *ircuser);
   void removeIrcChannel(IrcChannel *ircChannel);