summaryrefslogtreecommitdiff
path: root/src/send.c
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-06-10 11:43:40 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2007-06-10 11:43:40 +0000
commit60794f50c74184b271b24cc06cb0dd0ff3bbad39 (patch)
tree19e107457458061da24c8394a832bb93f34d1b75 /src/send.c
parent461af46f0e3ff11615813a36d696829b0a2a12f0 (diff)
BUILD : 1.7.18 (1246) BUGS : NOTES : Fixed possible compile error with inspircd11 on win32
git-svn-id: svn://svn.anope.org/anope/trunk@1246 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@965 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/send.c b/src/send.c
index 0f5179de6..352cd3b00 100644
--- a/src/send.c
+++ b/src/send.c
@@ -136,9 +136,8 @@ void notice_user(char *source, User * u, const char *fmt, ...)
* - The user is not registered and NSDefMsg is enabled
* - The user is registered and has set /ns set msg on
*/
- if (UsePrivmsg
- && ((!u->na && (NSDefFlags & NI_MSG))
- || (u->na && (u->na->nc->flags & NI_MSG)))) {
+ if (UsePrivmsg && ((!u->na && (NSDefFlags & NI_MSG))
+ || (u->na && (u->na->nc->flags & NI_MSG)))) {
anope_cmd_privmsg2(source, u->nick, buf);
} else {
anope_cmd_notice2(source, u->nick, buf);
@@ -208,9 +207,9 @@ void notice_lang(char *source, User * dest, int message, ...)
* - The user is not registered and NSDefMsg is enabled
* - The user is registered and has set /ns set msg on
*/
- if (UsePrivmsg
- && ((!dest->na && (NSDefFlags & NI_MSG))
- || (dest->na && (dest->na->nc->flags & NI_MSG)))) {
+ if (UsePrivmsg && ((!dest->na && (NSDefFlags & NI_MSG))
+ || (dest->na
+ && (dest->na->nc->flags & NI_MSG)))) {
anope_cmd_privmsg2(source, dest->nick, *t ? t : " ");
} else {
anope_cmd_notice2(source, dest->nick, *t ? t : " ");
@@ -264,9 +263,9 @@ void notice_help(char *source, User * dest, int message, ...)
* - The user is not registered and NSDefMsg is enabled
* - The user is registered and has set /ns set msg on
*/
- if (UsePrivmsg
- && ((!dest->na && (NSDefFlags & NI_MSG))
- || (dest->na && (dest->na->nc->flags & NI_MSG)))) {
+ if (UsePrivmsg && ((!dest->na && (NSDefFlags & NI_MSG))
+ || (dest->na
+ && (dest->na->nc->flags & NI_MSG)))) {
anope_cmd_privmsg2(source, dest->nick, *outbuf ? outbuf : " ");
} else {
anope_cmd_notice2(source, dest->nick, *outbuf ? outbuf : " ");