1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Minor speed enhancement

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1116 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-14 18:31:53 +00:00 committed by cras
parent c49b5adc1b
commit 43186de148

View File

@ -150,7 +150,7 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg,
if (p != NULL && p != msg) {
msgnick = g_strndup(msg, (int) (p-msg));
nick = nicklist_find(channel, msgnick);
if (nick == NULL) {
if (nick == NULL && msgnick[1] != '\0') {
/* probably ':' or ',' or some other
char after nick, try without it */
msgnick[strlen(msgnick)-1] = '\0';