summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-05-29 15:13:55 +0200
committerattilamolnar <attilamolnar@hush.com>2012-05-29 15:13:55 +0200
commit7d41ace956e2b35cb9fe89cb43865bb3ed38523e (patch)
tree5542c00a4d92f40eaa6b8480e4852bd28e2d86ab /src
parent0409230be0aba22360ce23cab1d9d070fe15c838 (diff)
Fix printf-style WriteAllExcept not obeying serversource parameter
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 6419d3b9a..51fa74064 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -659,7 +659,7 @@ void Channel::WriteAllExcept(User* user, bool serversource, char status, CUList
if (!text)
return;
- int offset = snprintf(textbuffer,MAXBUF,":%s ", user->GetFullHost().c_str());
+ int offset = snprintf(textbuffer,MAXBUF,":%s ", serversource ? ServerInstance->Config->ServerName.c_str() : user->GetFullHost().c_str());
va_start(argsPtr, text);
vsnprintf(textbuffer + offset, MAXBUF - offset, text, argsPtr);