Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 393:f8f3c7493457
Whitespace cleanup
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 Aug 2005 23:04:54 +0100 |
parents | d59e9b8c91d3 |
children | 4f36d41695a9 |
comparison
equal
deleted
inserted
replaced
392:6329c9601704 | 393:f8f3c7493457 |
---|---|
1 /* | 1 /* |
2 * commands.c -- user commands handling | 2 * commands.c -- user commands handling |
3 * | 3 * |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> | 4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by | 7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or (at | 8 * the Free Software Foundation; either version 2 of the License, or (at |
212 // Write the message in the buddy's window and send the message on | 212 // Write the message in the buddy's window and send the message on |
213 // the network. | 213 // the network. |
214 void send_message(const char *msg) | 214 void send_message(const char *msg) |
215 { | 215 { |
216 const char *jid; | 216 const char *jid; |
217 | 217 |
218 if (!current_buddy) { | 218 if (!current_buddy) { |
219 scr_LogPrint(LPRINT_NORMAL, "No buddy currently selected."); | 219 scr_LogPrint(LPRINT_NORMAL, "No buddy currently selected."); |
220 return; | 220 return; |
221 } | 221 } |
222 | 222 |
729 | 729 |
730 static void do_set(char *arg) | 730 static void do_set(char *arg) |
731 { | 731 { |
732 guint assign; | 732 guint assign; |
733 const gchar *option, *value; | 733 const gchar *option, *value; |
734 | 734 |
735 assign = parse_assigment(arg, &option, &value); | 735 assign = parse_assigment(arg, &option, &value); |
736 if (!option) { | 736 if (!option) { |
737 scr_LogPrint(LPRINT_NORMAL, "Huh?"); | 737 scr_LogPrint(LPRINT_NORMAL, "Huh?"); |
738 return; | 738 return; |
739 } | 739 } |
759 | 759 |
760 static void do_alias(char *arg) | 760 static void do_alias(char *arg) |
761 { | 761 { |
762 guint assign; | 762 guint assign; |
763 const gchar *alias, *value; | 763 const gchar *alias, *value; |
764 | 764 |
765 assign = parse_assigment(arg, &alias, &value); | 765 assign = parse_assigment(arg, &alias, &value); |
766 if (!alias) { | 766 if (!alias) { |
767 scr_LogPrint(LPRINT_NORMAL, "Huh?"); | 767 scr_LogPrint(LPRINT_NORMAL, "Huh?"); |
768 return; | 768 return; |
769 } | 769 } |
798 | 798 |
799 static void do_bind(char *arg) | 799 static void do_bind(char *arg) |
800 { | 800 { |
801 guint assign; | 801 guint assign; |
802 const gchar *keycode, *value; | 802 const gchar *keycode, *value; |
803 | 803 |
804 assign = parse_assigment(arg, &keycode, &value); | 804 assign = parse_assigment(arg, &keycode, &value); |
805 if (!keycode) { | 805 if (!keycode) { |
806 scr_LogPrint(LPRINT_NORMAL, "Huh?"); | 806 scr_LogPrint(LPRINT_NORMAL, "Huh?"); |
807 return; | 807 return; |
808 } | 808 } |