aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/irc.c b/src/irc.c
index 29c250d..676c421 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -853,6 +853,13 @@ void ui_ping(void) {
cmd_ctcp_ping(nick);
}
+static void toggle_edbox_only(void) {
+ if(OS.sdlst == edbox_only_dlist)
+ scr_end_scrollback();
+ else
+ OS.sdlst = edbox_only_dlist;
+}
+
static void start_keystroke(void) {
char i, s;
@@ -928,6 +935,9 @@ static void start_keystroke(void) {
case 't':
send_cur_chan_cmd("TOPIC");
break;
+ case 'e':
+ toggle_edbox_only();
+ break;
case 's':
edbox_hide();
/* fall thru */