From 3df76b0d28a2beb6e8827bf90e253528f4977c49 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 28 Apr 2005 21:49:04 +0000 Subject: Fixed WriteCommon not writing to the source user when not on any channels git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1252 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index de8258c9a..ee6fa803a 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -850,6 +850,12 @@ void WriteCommon(userrec *u, char* text, ...) } } } + // if the user was not in any channels, no users will receive the text. Make sure the user + // receives their OWN message for WriteCommon + if (!already_sent.size()) + { + WriteFrom(u->fd,u,"%s",textbuffer); + } } /* write a formatted string to all users who share at least one common -- cgit v1.2.3