summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp12
-rw-r--r--src/actions/commands.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index aae31db26..905d7a2fb 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -634,4 +634,16 @@ impHandler(disableAway)
return false;
}
+impHandler(enableAway)
+{
+ if (event.tab)
+ {
+ event.tab->setNoAway(false);
+ if (chatWindow)
+ chatWindow->saveState();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 140877eb5..02514ece0 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -64,6 +64,7 @@ namespace Actions
decHandler(dontRemoveName);
decHandler(removeName);
decHandler(disableAway);
+ decHandler(enableAway);
} // namespace Actions
#undef decHandler