mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Added chat protocol register. Changed all chat_type fields to use it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@640 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
03091413ee
commit
28a7908e73
26 changed files with 259 additions and 62 deletions
|
|
@ -62,6 +62,7 @@ void channel_destroy(CHANNEL_REC *channel)
|
|||
MODULE_DATA_DEINIT(channel);
|
||||
g_free_not_null(channel->topic);
|
||||
g_free_not_null(channel->key);
|
||||
g_free(channel->mode);
|
||||
g_free(channel->name);
|
||||
g_free(channel);
|
||||
}
|
||||
|
|
@ -84,7 +85,7 @@ static CHANNEL_REC *channel_find_server(SERVER_REC *server,
|
|||
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
||||
CHANNEL_REC *rec = tmp->data;
|
||||
|
||||
if (rec->chat_type == server->channel_type &&
|
||||
if (rec->chat_type == server->chat_type &&
|
||||
g_strcasecmp(name, rec->name) == 0)
|
||||
return rec;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue