1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-14 03:04:17 -04:00

Netjoin should now work properly with +channels and !channels.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3104 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-01-26 00:33:29 +00:00 committed by cras
parent 4431f7c994
commit 6331a7f447

View File

@ -184,8 +184,7 @@ static void print_netjoins(NETJOIN_SERVER_REC *server)
next = tmp->next;
while (rec->now_channels != NULL) {
char *channel = rec->now_channels->data;
char *realchannel = channel +
(isnickflag(*channel) && ischannel(channel[1]));
char *realchannel = channel + 1;
temp = g_hash_table_lookup(channels, realchannel);
if (temp == NULL) {
@ -198,7 +197,7 @@ static void print_netjoins(NETJOIN_SERVER_REC *server)
temp->count++;
if (temp->count <= netjoin_max_nicks) {
if (isnickflag(*channel))
if (*channel != ' ')
g_string_append_c(temp->nicks,
*channel);
g_string_sprintfa(temp->nicks, "%s, ",
@ -318,7 +317,7 @@ static void msg_join(IRC_SERVER_REC *server, const char *channel,
netjoin = netjoin_add(server, nick, split->channels);
netjoin->now_channels = g_slist_append(netjoin->now_channels,
g_strdup(channel));
g_strconcat(" ", channel, NULL));
signal_stop();
}