From 7d41ace956e2b35cb9fe89cb43865bb3ed38523e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 29 May 2012 15:13:55 +0200 Subject: Fix printf-style WriteAllExcept not obeying serversource parameter --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3