summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-02-15 02:10:09 +0300
committerAndrei Karas <akaras@inbox.ru>2018-02-15 02:10:09 +0300
commit435c12617241fb87225987f2e3f0521cf2dbae75 (patch)
tree16add38ce29c63cea06757bb835eadbfb4e59a01 /src/utils
parentc29d9bec9751fbd836e59cb3ba60e778fca2f987 (diff)
downloadplus-435c12617241fb87225987f2e3f0521cf2dbae75.tar.gz
plus-435c12617241fb87225987f2e3f0521cf2dbae75.tar.bz2
plus-435c12617241fb87225987f2e3f0521cf2dbae75.tar.xz
plus-435c12617241fb87225987f2e3f0521cf2dbae75.zip
Remove unused channel parameter from talk methods.s20180215
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/chatutils.cpp4
-rw-r--r--src/utils/gmfunctions.cpp24
2 files changed, 10 insertions, 18 deletions
diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp
index 0e2d7e2cb..db87e1644 100644
--- a/src/utils/chatutils.cpp
+++ b/src/utils/chatutils.cpp
@@ -54,7 +54,7 @@ void outStringNormal(ChatTab *const tab,
if (tab == nullptr)
{
- chatHandler->talk(str, GENERAL_CHANNEL);
+ chatHandler->talk(str);
return;
}
@@ -112,7 +112,7 @@ void outStringNormal(ChatTab *const tab,
case ChatTabType::LANG:
case ChatTabType::GM:
case ChatTabType::CHANNEL:
- chatHandler->talk(def, GENERAL_CHANNEL);
+ chatHandler->talk(def);
break;
}
}
diff --git a/src/utils/gmfunctions.cpp b/src/utils/gmfunctions.cpp
index 90e78f5ca..412f1a1a9 100644
--- a/src/utils/gmfunctions.cpp
+++ b/src/utils/gmfunctions.cpp
@@ -40,8 +40,7 @@ void runCommand(const std::string &command,
{
chatHandler->talk(std::string(
settings.gmCommandSymbol).append(
- command),
- GENERAL_CHANNEL);
+ command));
}
else
{
@@ -49,8 +48,7 @@ void runCommand(const std::string &command,
settings.gmCommandSymbol).append(
command).append(
" ").append(
- params),
- GENERAL_CHANNEL);
+ params));
}
}
@@ -58,8 +56,7 @@ void runCommand(const std::string &command)
{
chatHandler->talk(std::string(
settings.gmCommandSymbol).append(
- command),
- GENERAL_CHANNEL);
+ command));
}
void runCharCommand(const std::string &command,
@@ -72,8 +69,7 @@ void runCharCommand(const std::string &command,
{
chatHandler->talk(std::string(
settings.gmCommandSymbol).append(
- command),
- GENERAL_CHANNEL);
+ command));
}
else
{
@@ -81,8 +77,7 @@ void runCharCommand(const std::string &command,
settings.gmCommandSymbol).append(
command).append(
" ").append(
- params),
- GENERAL_CHANNEL);
+ params));
}
}
else
@@ -93,8 +88,7 @@ void runCharCommand(const std::string &command,
" \"").append(
name).append(
"\" ").append(
- params),
- GENERAL_CHANNEL);
+ params));
}
}
@@ -105,8 +99,7 @@ void runCharCommand(const std::string &command,
{
chatHandler->talk(std::string(
settings.gmCommandSymbol).append(
- command),
- GENERAL_CHANNEL);
+ command));
}
else
{
@@ -114,8 +107,7 @@ void runCharCommand(const std::string &command,
settings.gmCharCommandSymbol).append(
command).append(
" ").append(
- name),
- GENERAL_CHANNEL);
+ name));
}
}