summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-08-26 09:44:18 -0400
committerTingPing <tingping@tingping.se>2013-08-26 09:44:18 -0400
commit43a2f4309078f2abdded0605536d80890cd2d8a1 (patch)
tree9f5ea4df908cebeba268f2430de03cc4139df958 /src
parentb3369a4bc478b68392536db61bbdedee11893504 (diff)
Handle incoming messages from yourself
These are common for users of bouncers, private messages still need to
be handled.
Diffstat (limited to 'src')
-rw-r--r--src/common/inbound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index a8c19504..bdac83f7 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -392,6 +392,8 @@ inbound_action (session *sess, char *chan, char *from, char *ip, char *text,
 		user->lasttalk = time (0);
 		if (user->account)
 			id = TRUE;
+		if (user->me)
+			fromme = TRUE;
 	}
 
 	inbound_make_idtext (serv, idtext, sizeof (idtext), id);
@@ -459,6 +461,8 @@ inbound_chanmsg (server *serv, session *sess, char *chan, char *from,
 			id = TRUE;
 		nickchar[0] = user->prefix[0];
 		user->lasttalk = time (0);
+		if (user->me)
+			fromme = TRUE;
 	}
 
 	if (fromme)