X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ffb204b696ed373e9e367d45079c3b725c98efe4..cbfd323c3191336a3c07c24725019cdaf87f0dd6:/src/mod-snoop.c diff --git a/src/mod-snoop.c b/src/mod-snoop.c index 3222e74..19b50c1 100644 --- a/src/mod-snoop.c +++ b/src/mod-snoop.c @@ -5,7 +5,7 @@ * * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, @@ -243,6 +243,19 @@ snoop_channel_mode(struct userNode *who, struct chanNode *channel, char **modes, tg = tmp; break; } + case 'h': + { + strcat(targets, " "); + if ((tmp = strchr(tg, ' '))) + *tmp++ = 0; + if((un = GetUserN(tg))) + strcat(targets, un->nick); + else + strcat(targets, tg); + if(tmp) + tg = tmp; + break; + } case 'v': { strcat(targets, " ");