summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-27 21:45:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-27 21:45:16 +0300
commit0fe0f8bae7b754453e6e6bb7c7b29903facb9311 (patch)
treed92c810fbc93fe8bb2f362a7ef023ebe96653c2d /src/commands.cpp
parent8150191686759b13a239c25970924c3c186140ff (diff)
downloadmanaverse-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.gz
manaverse-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.bz2
manaverse-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.tar.xz
manaverse-0fe0f8bae7b754453e6e6bb7c7b29903facb9311.zip
improve chathandler class.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 80e276d8b..1beba22d5 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -88,7 +88,7 @@ static void outString(ChatTab *const tab, const std::string &str,
{
if (!tab)
{
- Net::getChatHandler()->me(def);
+ Net::getChatHandler()->me(def, GENERAL_CHANNEL);
return;
}
@@ -114,7 +114,7 @@ static void outString(ChatTab *const tab, const std::string &str,
break;
}
default:
- Net::getChatHandler()->me(def);
+ Net::getChatHandler()->me(def, GENERAL_CHANNEL);
break;
}
}
@@ -362,23 +362,6 @@ impHandler0(cleanFonts)
debugChatTab->chatLog(_("Cache cleaned"));
}
-impHandler(join)
-{
- if (!tab)
- return;
-
- const size_t pos = args.find(' ');
- const std::string name(args, 0, pos);
- const std::string password(args, pos + 1);
- tab->chatLog(strprintf(_("Requesting to join channel %s."), name.c_str()));
- Net::getChatHandler()->enterChannel(name, password);
-}
-
-impHandler0(listChannels)
-{
- Net::getChatHandler()->channelList();
-}
-
impHandler(createParty)
{
if (!tab)