summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-16 05:52:05 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-16 05:52:05 +0000
commiteb0c255fadec7c81bc318c944ada86131f5872bd (patch)
tree8cb490da5ad64c4815d24c6f867a399b986fd6d4 /src
parent01994c1ba1ee30352e0ba6a5ff2e9d959dd63f25 (diff)
Fixed os_info to display syntax errors if you entered no text, found by Cronus
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2816 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/modules/os_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index 7f9e639cc..90f283e59 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -198,6 +198,8 @@ int myAddNickInfo(User * u)
} else {
moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX);
}
+ } else {
+ moduleNoticeLang(s_NickServ, u, OINFO_SYNTAX);
}
return MOD_CONT;
}
@@ -266,6 +268,8 @@ int myAddChanInfo(User * u)
} else {
moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX);
}
+ } else {
+ moduleNoticeLang(s_ChanServ, u, OCINFO_SYNTAX);
}
return MOD_CONT;
}