diff --git a/clientcommands.js b/clientcommands.js
index <HASH>..<HASH> 100644
--- a/clientcommands.js
+++ b/clientcommands.js
@@ -50,6 +50,8 @@ function handleMsg(targetName, text) {
 				self.user.applyStateChange('ChatMessage', query.toWindowPath(), self.server.nickname, text);
 
 				self.server.send('PRIVMSG ' + target.nick + ' :' + text);
+
+				self.user.setActiveWindow(query.toWindowPath());
 			} else if (target instanceof ChannelTarget) {
 				var channel = self.server.findChannel(target.name);
focusing target query window on /msg