2000-04-26 04:03:38 -04:00
|
|
|
/*
|
|
|
|
channel-events.c : irssi
|
|
|
|
|
|
|
|
Copyright (C) 1999-2000 Timo Sirainen
|
|
|
|
|
|
|
|
This program 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
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2007-05-08 14:16:58 -04:00
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2000-04-26 04:03:38 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "module.h"
|
|
|
|
#include "signals.h"
|
|
|
|
#include "misc.h"
|
2001-08-08 13:47:54 -04:00
|
|
|
#include "channels-setup.h"
|
2001-11-19 08:02:39 -05:00
|
|
|
#include "settings.h"
|
2004-08-19 20:03:40 -04:00
|
|
|
#include "recode.h"
|
2000-08-26 11:39:44 -04:00
|
|
|
|
2001-11-01 20:05:14 -05:00
|
|
|
#include "irc-servers.h"
|
2000-08-26 11:39:44 -04:00
|
|
|
#include "irc-channels.h"
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2003-11-16 13:44:36 -05:00
|
|
|
static void check_join_failure(IRC_SERVER_REC *server, const char *channel)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
CHANNEL_REC *chanrec;
|
2003-11-16 13:44:36 -05:00
|
|
|
char *chan2;
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
if (channel[0] == '!' && channel[1] == '!')
|
|
|
|
channel++; /* server didn't understand !channels */
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
chanrec = channel_find(SERVER(server), channel);
|
2000-06-15 15:34:31 -04:00
|
|
|
if (chanrec == NULL && channel[0] == '!') {
|
|
|
|
/* it probably replied with the full !channel name,
|
|
|
|
find the channel with the short name.. */
|
2003-11-16 13:44:36 -05:00
|
|
|
chan2 = g_strdup_printf("!%s", channel+6);
|
|
|
|
chanrec = channel_find(SERVER(server), chan2);
|
|
|
|
g_free(chan2);
|
2000-06-15 15:34:31 -04:00
|
|
|
}
|
|
|
|
|
2002-05-26 13:50:55 -04:00
|
|
|
if (chanrec != NULL && !chanrec->joined) {
|
2000-04-26 04:03:38 -04:00
|
|
|
chanrec->left = TRUE;
|
|
|
|
channel_destroy(chanrec);
|
|
|
|
}
|
2003-11-16 13:44:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
static void irc_server_event(IRC_SERVER_REC *server, const char *line)
|
|
|
|
{
|
|
|
|
char *params, *numeric, *channel;
|
|
|
|
|
|
|
|
/* We'll be checking "4xx <your nick> <channel>" for channels
|
|
|
|
which we haven't joined yet. 4xx are error codes and should
|
|
|
|
indicate that the join failed. */
|
|
|
|
params = event_get_params(line, 3, &numeric, NULL, &channel);
|
|
|
|
|
|
|
|
if (numeric[0] == '4')
|
|
|
|
check_join_failure(server, channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2002-03-16 21:50:12 -05:00
|
|
|
static void event_no_such_channel(IRC_SERVER_REC *server, const char *data)
|
|
|
|
{
|
|
|
|
CHANNEL_REC *chanrec;
|
|
|
|
CHANNEL_SETUP_REC *setup;
|
|
|
|
char *params, *channel;
|
|
|
|
|
|
|
|
params = event_get_params(data, 2, NULL, &channel);
|
|
|
|
chanrec = *channel == '!' && channel[1] != '\0' ?
|
|
|
|
channel_find(SERVER(server), channel) : NULL;
|
|
|
|
|
|
|
|
if (chanrec != NULL) {
|
|
|
|
/* !channel didn't exist, so join failed */
|
|
|
|
setup = channel_setup_find(chanrec->name,
|
|
|
|
chanrec->server->connrec->chatnet);
|
|
|
|
if (setup != NULL && setup->autojoin) {
|
2003-11-16 13:44:36 -05:00
|
|
|
/* it's autojoin channel though, so create it */
|
2002-03-16 21:50:12 -05:00
|
|
|
irc_send_cmdv(server, "JOIN !%s", chanrec->name);
|
2003-11-16 13:44:36 -05:00
|
|
|
g_free(params);
|
2002-03-16 21:50:12 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-11-16 13:44:36 -05:00
|
|
|
check_join_failure(server, channel);
|
|
|
|
g_free(params);
|
2002-03-16 21:50:12 -05:00
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_duplicate_channel(IRC_SERVER_REC *server, const char *data)
|
2000-10-13 21:03:11 -04:00
|
|
|
{
|
|
|
|
CHANNEL_REC *chanrec;
|
|
|
|
char *params, *channel, *p;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
/* this new addition to ircd breaks completely with older
|
|
|
|
"standards", "nick Duplicate ::!!channel ...." */
|
|
|
|
params = event_get_params(data, 3, NULL, NULL, &channel);
|
|
|
|
p = strchr(channel, ' ');
|
|
|
|
if (p != NULL) *p = '\0';
|
|
|
|
|
2000-12-22 08:02:33 -05:00
|
|
|
if (channel[0] == '!') {
|
|
|
|
chanrec = channel_find(SERVER(server),
|
|
|
|
channel+(channel[1] == '!'));
|
2000-10-13 21:03:11 -04:00
|
|
|
if (chanrec != NULL && !chanrec->names_got) {
|
|
|
|
chanrec->left = TRUE;
|
|
|
|
channel_destroy(chanrec);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_target_unavailable(IRC_SERVER_REC *server, const char *data)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
char *params, *channel;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 2, NULL, &channel);
|
|
|
|
if (ischannel(*channel)) {
|
2000-05-15 04:25:45 -04:00
|
|
|
/* channel is unavailable - try to join again a bit later */
|
2003-11-16 13:44:36 -05:00
|
|
|
check_join_failure(server, channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-11-17 09:59:32 -05:00
|
|
|
static void channel_change_topic(IRC_SERVER_REC *server, const char *channel,
|
|
|
|
const char *topic, const char *setby,
|
|
|
|
time_t settime)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
CHANNEL_REC *chanrec;
|
2004-08-19 20:03:40 -04:00
|
|
|
char *recoded = NULL;
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
chanrec = channel_find(SERVER(server), channel);
|
2000-11-17 09:59:32 -05:00
|
|
|
if (chanrec == NULL) return;
|
2004-08-19 20:03:40 -04:00
|
|
|
/* the topic may be send out encoded, so we need to
|
|
|
|
recode it back or /topic <tab> will not work properly */
|
2004-12-20 08:59:15 -05:00
|
|
|
recoded = recode_in(SERVER(server), topic, channel);
|
2000-11-17 09:59:32 -05:00
|
|
|
if (topic != NULL) {
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free_not_null(chanrec->topic);
|
2004-08-19 20:03:40 -04:00
|
|
|
chanrec->topic = recoded == NULL ? NULL : g_strdup(recoded);
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
2005-02-06 16:31:58 -05:00
|
|
|
g_free(recoded);
|
|
|
|
|
2000-11-17 09:59:32 -05:00
|
|
|
g_free_not_null(chanrec->topic_by);
|
|
|
|
chanrec->topic_by = g_strdup(setby);
|
|
|
|
|
|
|
|
chanrec->topic_time = settime;
|
|
|
|
|
|
|
|
signal_emit("channel topic changed", 1, chanrec);
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
2000-11-17 09:59:32 -05:00
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_topic_get(IRC_SERVER_REC *server, const char *data)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
char *params, *channel, *topic;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 3, NULL, &channel, &topic);
|
2000-11-17 09:59:32 -05:00
|
|
|
channel_change_topic(server, channel, topic, NULL, 0);
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_topic(IRC_SERVER_REC *server, const char *data,
|
2002-04-24 08:38:27 -04:00
|
|
|
const char *nick, const char *addr)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
2002-04-24 08:38:27 -04:00
|
|
|
char *params, *channel, *topic, *mask;
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 2, &channel, &topic);
|
2002-04-24 08:38:27 -04:00
|
|
|
mask = addr == NULL ? g_strdup(nick) :
|
|
|
|
g_strconcat(nick, "!", addr, NULL);
|
|
|
|
channel_change_topic(server, channel, topic, mask, time(NULL));
|
|
|
|
g_free(mask);
|
2000-11-17 09:59:32 -05:00
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_topic_info(IRC_SERVER_REC *server, const char *data)
|
2000-11-17 09:59:32 -05:00
|
|
|
{
|
|
|
|
char *params, *channel, *topicby, *topictime;
|
|
|
|
time_t t;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 4, NULL, &channel,
|
|
|
|
&topicby, &topictime);
|
|
|
|
|
|
|
|
t = (time_t) atol(topictime);
|
|
|
|
channel_change_topic(server, channel, NULL, topicby, t);
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-05-04 06:32:42 -04:00
|
|
|
/* Find any unjoined channel that matches `channel'. Long channel names are
|
|
|
|
also a bit problematic, so find a channel where start of the name matches. */
|
2000-08-26 11:39:44 -04:00
|
|
|
static IRC_CHANNEL_REC *channel_find_unjoined(IRC_SERVER_REC *server,
|
|
|
|
const char *channel)
|
2000-05-04 06:32:42 -04:00
|
|
|
{
|
|
|
|
GSList *tmp;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
len = strlen(channel);
|
|
|
|
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
2000-08-26 11:39:44 -04:00
|
|
|
IRC_CHANNEL_REC *rec = tmp->data;
|
2000-05-04 06:32:42 -04:00
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
if (!IS_IRC_CHANNEL(rec) || rec->joined)
|
|
|
|
continue;
|
2000-05-04 06:32:42 -04:00
|
|
|
|
|
|
|
if (g_strncasecmp(channel, rec->name, len) == 0 &&
|
|
|
|
(len > 20 || rec->name[len] == '\0'))
|
|
|
|
return rec;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_join(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
2002-05-17 10:49:15 -04:00
|
|
|
char *params, *channel, *tmp, *shortchan;
|
2000-08-26 11:39:44 -04:00
|
|
|
IRC_CHANNEL_REC *chanrec;
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
if (g_strcasecmp(nick, server->nick) != 0) {
|
|
|
|
/* someone else joined channel, no need to do anything */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (server->userhost == NULL)
|
|
|
|
server->userhost = g_strdup(address);
|
|
|
|
|
|
|
|
params = event_get_params(data, 1, &channel);
|
|
|
|
tmp = strchr(channel, 7); /* ^G does something weird.. */
|
|
|
|
if (tmp != NULL) *tmp = '\0';
|
|
|
|
|
2002-05-19 04:18:09 -04:00
|
|
|
if (*channel != '!' || strlen(channel) < 7)
|
2002-05-17 10:49:15 -04:00
|
|
|
shortchan = NULL;
|
|
|
|
else {
|
2000-04-26 04:03:38 -04:00
|
|
|
/* !channels have 5 chars long identification string before
|
|
|
|
it's name, it's not known when /join is called so rename
|
|
|
|
!channel here to !ABCDEchannel */
|
2000-05-04 06:32:42 -04:00
|
|
|
shortchan = g_strdup_printf("!%s", channel+6);
|
|
|
|
chanrec = channel_find_unjoined(server, shortchan);
|
2000-04-26 04:03:38 -04:00
|
|
|
if (chanrec != NULL) {
|
2002-05-17 11:22:05 -04:00
|
|
|
channel_change_name(CHANNEL(chanrec), channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free(chanrec->name);
|
|
|
|
chanrec->name = g_strdup(channel);
|
2002-05-17 11:22:05 -04:00
|
|
|
} else {
|
|
|
|
/* well, did we join it with full name? if so, and if
|
|
|
|
this was the first short one, change it's name. */
|
|
|
|
chanrec = channel_find_unjoined(server, channel);
|
|
|
|
if (chanrec != NULL &&
|
|
|
|
irc_channel_find(server, shortchan) == NULL) {
|
|
|
|
channel_change_visible_name(CHANNEL(chanrec),
|
|
|
|
shortchan);
|
|
|
|
}
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
chanrec = irc_channel_find(server, channel);
|
2000-07-31 18:10:18 -04:00
|
|
|
if (chanrec != NULL && chanrec->joined) {
|
2003-01-21 03:15:33 -05:00
|
|
|
/* already joined this channel - probably a broken proxy that
|
|
|
|
forgot to send PART between */
|
|
|
|
chanrec->left = TRUE;
|
|
|
|
channel_destroy(CHANNEL(chanrec));
|
|
|
|
chanrec = NULL; }
|
2000-07-31 18:10:18 -04:00
|
|
|
|
2002-05-17 10:49:15 -04:00
|
|
|
if (chanrec == NULL) {
|
|
|
|
/* look again, because of the channel name cut issues. */
|
|
|
|
chanrec = channel_find_unjoined(server, channel);
|
|
|
|
}
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
if (chanrec == NULL) {
|
|
|
|
/* didn't get here with /join command.. */
|
2002-05-17 10:49:15 -04:00
|
|
|
chanrec = irc_channel_create(server, channel, shortchan, TRUE);
|
2000-04-26 04:03:38 -04:00
|
|
|
}
|
2002-05-17 10:49:15 -04:00
|
|
|
|
2000-05-04 06:32:42 -04:00
|
|
|
chanrec->joined = TRUE;
|
|
|
|
if (strcmp(chanrec->name, channel) != 0) {
|
|
|
|
g_free(chanrec->name);
|
|
|
|
chanrec->name = g_strdup(channel);
|
|
|
|
}
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2002-05-17 10:49:15 -04:00
|
|
|
g_free(shortchan);
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_part(IRC_SERVER_REC *server, const char *data, const char *nick)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
char *params, *channel, *reason;
|
|
|
|
CHANNEL_REC *chanrec;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
if (g_strcasecmp(nick, server->nick) != 0) {
|
|
|
|
/* someone else part, no need to do anything here */
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
params = event_get_params(data, 2, &channel, &reason);
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
chanrec = channel_find(SERVER(server), channel);
|
2001-05-11 12:08:48 -04:00
|
|
|
if (chanrec != NULL && chanrec->joined) {
|
2000-04-26 04:03:38 -04:00
|
|
|
chanrec->left = TRUE;
|
|
|
|
channel_destroy(chanrec);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_kick(IRC_SERVER_REC *server, const char *data)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
|
|
|
CHANNEL_REC *chanrec;
|
|
|
|
char *params, *channel, *nick, *reason;
|
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 3, &channel, &nick, &reason);
|
|
|
|
|
|
|
|
if (g_strcasecmp(nick, server->nick) != 0) {
|
|
|
|
/* someone else was kicked, no need to do anything */
|
|
|
|
g_free(params);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2000-08-26 11:39:44 -04:00
|
|
|
chanrec = channel_find(SERVER(server), channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
if (chanrec != NULL) {
|
2002-01-10 13:39:02 -05:00
|
|
|
irc_server_purge_output(server, channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
chanrec->kicked = TRUE;
|
|
|
|
channel_destroy(chanrec);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
2000-12-05 16:12:52 -05:00
|
|
|
static void event_invite(IRC_SERVER_REC *server, const char *data)
|
2000-04-26 04:03:38 -04:00
|
|
|
{
|
2002-08-22 16:35:43 -04:00
|
|
|
char *params, *channel, *shortchan;
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
g_return_if_fail(data != NULL);
|
|
|
|
|
|
|
|
params = event_get_params(data, 2, NULL, &channel);
|
2001-08-08 13:47:54 -04:00
|
|
|
|
|
|
|
if (irc_channel_find(server, channel) == NULL) {
|
|
|
|
/* check if we're supposed to autojoin this channel */
|
|
|
|
CHANNEL_SETUP_REC *setup;
|
|
|
|
|
|
|
|
setup = channel_setup_find(channel, server->connrec->chatnet);
|
2002-08-22 16:35:43 -04:00
|
|
|
if (setup == NULL && channel[0] == '!' &&
|
|
|
|
strlen(channel) > 6) {
|
|
|
|
shortchan = g_strdup_printf("!%s", channel+6);
|
|
|
|
setup = channel_setup_find(shortchan,
|
|
|
|
server->connrec->chatnet);
|
|
|
|
g_free(shortchan);
|
|
|
|
}
|
2001-11-19 08:02:39 -05:00
|
|
|
if (setup != NULL && setup->autojoin && settings_get_bool("join_auto_chans_on_invite"))
|
2001-08-08 13:47:54 -04:00
|
|
|
server->channels_join(SERVER(server), channel, TRUE);
|
|
|
|
}
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
g_free_not_null(server->last_invite);
|
|
|
|
server->last_invite = g_strdup(channel);
|
|
|
|
g_free(params);
|
|
|
|
}
|
|
|
|
|
|
|
|
void channel_events_init(void)
|
|
|
|
{
|
2001-11-19 21:04:44 -05:00
|
|
|
settings_add_bool("misc", "join_auto_chans_on_invite", TRUE);
|
|
|
|
|
2003-11-16 13:44:36 -05:00
|
|
|
signal_add_first("server event", (SIGNAL_FUNC) irc_server_event);
|
2002-03-16 21:50:12 -05:00
|
|
|
signal_add_first("event 403", (SIGNAL_FUNC) event_no_such_channel); /* no such channel */
|
2000-10-13 21:03:11 -04:00
|
|
|
signal_add_first("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
signal_add("event topic", (SIGNAL_FUNC) event_topic);
|
2000-10-13 21:06:24 -04:00
|
|
|
signal_add_first("event join", (SIGNAL_FUNC) event_join);
|
2000-04-26 04:03:38 -04:00
|
|
|
signal_add("event part", (SIGNAL_FUNC) event_part);
|
|
|
|
signal_add("event kick", (SIGNAL_FUNC) event_kick);
|
|
|
|
signal_add("event invite", (SIGNAL_FUNC) event_invite);
|
|
|
|
signal_add("event 332", (SIGNAL_FUNC) event_topic_get);
|
2000-11-17 09:59:32 -05:00
|
|
|
signal_add("event 333", (SIGNAL_FUNC) event_topic_info);
|
2000-04-26 04:03:38 -04:00
|
|
|
signal_add_first("event 437", (SIGNAL_FUNC) event_target_unavailable); /* channel/nick unavailable */
|
|
|
|
}
|
|
|
|
|
|
|
|
void channel_events_deinit(void)
|
|
|
|
{
|
2003-11-16 13:44:36 -05:00
|
|
|
signal_remove("server event", (SIGNAL_FUNC) irc_server_event);
|
2002-03-16 21:50:12 -05:00
|
|
|
signal_remove("event 403", (SIGNAL_FUNC) event_no_such_channel); /* no such channel */
|
2000-10-13 21:03:11 -04:00
|
|
|
signal_remove("event 407", (SIGNAL_FUNC) event_duplicate_channel); /* duplicate channel */
|
2000-04-26 04:03:38 -04:00
|
|
|
|
|
|
|
signal_remove("event topic", (SIGNAL_FUNC) event_topic);
|
|
|
|
signal_remove("event join", (SIGNAL_FUNC) event_join);
|
|
|
|
signal_remove("event part", (SIGNAL_FUNC) event_part);
|
|
|
|
signal_remove("event kick", (SIGNAL_FUNC) event_kick);
|
|
|
|
signal_remove("event invite", (SIGNAL_FUNC) event_invite);
|
|
|
|
signal_remove("event 332", (SIGNAL_FUNC) event_topic_get);
|
2000-11-17 09:59:32 -05:00
|
|
|
signal_remove("event 333", (SIGNAL_FUNC) event_topic_info);
|
2000-04-26 04:03:38 -04:00
|
|
|
signal_remove("event 437", (SIGNAL_FUNC) event_target_unavailable); /* channel/nick unavailable */
|
|
|
|
}
|