diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-28 21:49:04 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-28 21:49:04 +0000 |
commit | 3df76b0d28a2beb6e8827bf90e253528f4977c49 (patch) | |
tree | f2925845e4cb387aa45d700ce04c4d4772c299a5 /src | |
parent | 7a4f43ac4a7db2c9e74609b1d40d67e1ae1d1e5e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |