about summary refs log tree commit diff stats
path: root/cpp/.traces/jump_if_fallthrough
Commit message (Collapse)AuthorAgeFilesLines
* 997Kartik K. Agaram2015-03-301-4/+4
|
* 968Kartik K. Agaram2015-03-241-1/+1
|
* 949 - paving the way for jumps to labelsKartik K. Agaram2015-03-171-3/+3
| | | | Addresses for reagents are now computed after all transforms.
* 941 - c++: basic break/loop conversionKartik K. Agaram2015-03-161-0/+3
|
* 940 - c++: some changes to instruction modelKartik K. Agaram2015-03-161-4/+4
|
* 832 - call-stack for C++ versionKartik K. Agaram2015-02-251-2/+2
| | | | | | | | | | These #defines and references now span many different layers. Let's see if the lack of encapsulation causes problems. Also interesting to run into a case where I need to modify a foundational layer and touch every single scenario/trace. Only alternative was to duplicate all the different layers that add instructions. Sign of problems with this model?
* 796 - jump instructions doneKartik K. Agaram2015-02-191-0/+12
oc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * muc_window.c
 *
 * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
 *
 * This file is part of Profanity.
 *
 * Profanity is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Profanity is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Profanity.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include <glib.h>

#include "ui/window.h"

gboolean
muc_handle_error_message(ProfWin *self, const char * const from,
    const char * const err_msg)
{
    gboolean handled = FALSE;
    if (g_strcmp0(err_msg, "conflict") == 0) {
        win_print_line(self, '-', 0, "Nickname already in use.");
        win_refresh(self);
        handled = TRUE;
    }

    return handled;
}