summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/command.c b/command.c
index 3ef4d5d..e06c2a0 100644
--- a/command.c
+++ b/command.c
@@ -40,7 +40,7 @@ static void commandQuote(uint id, char *params) {
 }
 
 static void echoMessage(char *cmd, uint id, char *params) {
-	if (!params || !params[0]) return;
+	if (!params) return;
 	ircFormat("%s %s :%s\r\n", cmd, idNames[id], params);
 	struct Message msg = {
 		.nick = self.nick,
@@ -396,6 +396,8 @@ void command(uint id, char *input) {
 	if (id == Debug && input[0] != '/' && !self.restricted) {
 		commandQuote(id, input);
 		return;
+	} else if (!input[0]) {
+		return;
 	} else if (commandIsPrivmsg(id, input)) {
 		commandPrivmsg(id, input);
 		return;
June McEnroe 2012-02-07Add back set nocompatible, even though it seemed to end up set anywayJune McEnroe 2012-02-05Update jellybeansJune McEnroe 2012-02-02Update itchy.vimJune McEnroe 2012-02-02Add mapping to toggle relative/absolute numberingJune McEnroe 2012-02-02Add itchy.vimJune McEnroe 2012-02-01Revert "Add ShowMarks plugin"June McEnroe This reverts commit ddcfaef5145595f8e15f34f091e50fb85a9a6149. 2012-02-01Add ShowMarks pluginJune McEnroe 2012-02-01Update Vim-Tomorrow-ThemeJune McEnroe 2012-02-01Add vim-markdownJune McEnroe 2012-02-01Add tabular.vimJune McEnroe 2012-02-01Update Vim-Tomorrow-ThemeJune McEnroe PS. Chris Kempson is a jerk. 2012-01-30Disable menu bar in GVimJune McEnroe 2012-01-30Set shiftwidth to 4 for LuaJune McEnroe 2012-01-29Don't show Syntastic errors automaticallyJune McEnroe 2012-01-28Update to Quicktask 1.1June McEnroe 2012-01-22Use space-test branch of quicktaskJune McEnroe 2012-01-22Enable syntax-based foldingJune McEnroe 2012-01-22Update quicktaskJune McEnroe 2012-01-22Revert "Add AutoClose"June McEnroe This reverts commit 2705f4b91a56caf4cf2b3b89b247580debd5d453. This fixes the delay when leaving insert mode 2012-01-22Revert "Disable powerline for now"June McEnroe This reverts commit 171b1aa0d1d445a1223d0d638f2798b780c3e1ce. 2012-01-22Revert "Add VCS repo directories to wildignore"June McEnroe This reverts commit f4cc36a0aca465eea866fa7131a19497d46e63f0. This fixes not being able to commit with vim-fugitive 2012-01-22Disable powerline for nowJune McEnroe 2012-01-22Update some pluginsJune McEnroe 2012-01-22Add VCS repo directories to wildignoreJune McEnroe 2012-01-22Map ,e and ,b to CtrlP file and buffer respectivelyJune McEnroe 2012-01-22Add vim-spaceJune McEnroe 2012-01-22Add AutoCloseJune McEnroe 2012-01-22Add binding for GundoJune McEnroe 2012-01-22Add GundoJune McEnroe 2012-01-22Add Jellybeans colorschemeJune McEnroe 2012-01-22Add syntasticJune McEnroe 2012-01-21Add PowerlineJune McEnroe 2012-01-21Add quicktaskJune McEnroe 2012-01-15Moved comments out of mapsJune McEnroe 2012-01-14Disable scrollbarsJune McEnroe