From 8004d775c24dcfb63dcbd3366f86278ec808f0d7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 27 Jan 2014 06:19:15 +0100 Subject: add commands for changing IRCNetworkConfig data --- bouncer/core.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'bouncer/core.h') diff --git a/bouncer/core.h b/bouncer/core.h index d7d54f3..8817b77 100644 --- a/bouncer/core.h +++ b/bouncer/core.h @@ -67,6 +67,7 @@ public: virtual void handleUserClosed(); void pushMessage(const char *str); + void notifyWindowRename(); }; class StatusWindow : public Window { @@ -303,13 +304,18 @@ private: }; struct IRCNetworkConfig { - char hostname[512]; - char nickname[128]; - char username[128]; - char realname[128]; - char password[128]; + std::string hostname, username, realname; + std::string nickname, altNick; + std::string password; int port; bool useTls; + + IRCNetworkConfig() { + username = "user"; + realname = "VulpIRC User"; + port = 6667; + useTls = false; + } }; class IRCServer : public Server { -- cgit v1.2.3