1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

updated aliases, added #irssi/efnet

/BANSTAT -> /BAN


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@185 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-04-27 11:44:55 +00:00 committed by cras
parent a94e6e735c
commit 642a4525d4
2 changed files with 19 additions and 5 deletions

12
config
View File

@ -4,8 +4,7 @@ setupservers = (
{server = "irc.undernet.net"; ircnet = Undernet; port = 6667; autoconnect = No;}, {server = "irc.undernet.net"; ircnet = Undernet; port = 6667; autoconnect = No;},
{server = "irc.dal.net"; ircnet = DALNet; port = 6667; autoconnect = No;}, {server = "irc.dal.net"; ircnet = DALNet; port = 6667; autoconnect = No;},
{server = "irc.openprojects.net"; ircnet = OPN; port = 6667; autoconnect = No;}, {server = "irc.openprojects.net"; ircnet = OPN; port = 6667; autoconnect = No;},
{server = "irc.ptlink.net"; ircnet = PTlink; port = 6667; autoconnect = No;}, {server = "irc.ptlink.net"; ircnet = PTlink; port = 6667; autoconnect = No;}
{server = "irc.multichat.org"; ircnet = Multichat; port = 6667; autoconnect = No;}
); );
ircnets = ( ircnets = (
@ -22,6 +21,11 @@ channels = (
name = "#irssi"; name = "#irssi";
ircnet = ircnet; ircnet = ircnet;
autojoin = No; autojoin = No;
},
{
name = "#irssi";
ircnet = efnet;
autojoin = No;
} }
); );
aliases = { aliases = {
@ -47,12 +51,16 @@ aliases = {
K = "kick"; K = "kick";
KB = "kickban"; KB = "kickban";
KN = "knockout"; KN = "knockout";
BANS = "ban";
B = "ban"; B = "ban";
MUB = "unban *";
UB = "unban"; UB = "unban";
IG = "ignore"; IG = "ignore";
UNIG = "unignore"; UNIG = "unignore";
SB = "scrollback"; SB = "scrollback";
UMODE = "mode $N"; UMODE = "mode $N";
WC = "window close";
WN = "window new";
}; };
popups = ( popups = (
{label = "<MULTICOMMA>Whois"; command = "/whois %s";}, {label = "<MULTICOMMA>Whois"; command = "/whois %s";},

View File

@ -323,14 +323,18 @@ static void cmd_nctcp(const char *data, IRC_SERVER_REC *server)
g_free(params); g_free(params);
} }
static void cmd_banstat(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) static void cmd_ban(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item)
{ {
CHANNEL_REC *cur_channel, *channel; CHANNEL_REC *cur_channel, *channel;
GSList *tmp; GSList *tmp;
g_return_if_fail(data != NULL); g_return_if_fail(data != NULL);
if (*data == '\0')
return; /* setting ban - don't handle here */
if (server == NULL || !server->connected) cmd_return_error(CMDERR_NOT_CONNECTED); if (server == NULL || !server->connected) cmd_return_error(CMDERR_NOT_CONNECTED);
/* display bans */
cur_channel = irc_item_channel(item); cur_channel = irc_item_channel(item);
if (cur_channel == NULL) cmd_return_error(CMDERR_NOT_JOINED); if (cur_channel == NULL) cmd_return_error(CMDERR_NOT_JOINED);
@ -377,6 +381,8 @@ static void cmd_banstat(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *it
printformat(server, channel->name, MSGLEVEL_CRAP, IRCTXT_EBANLIST, printformat(server, channel->name, MSGLEVEL_CRAP, IRCTXT_EBANLIST,
channel->name, rec->ban, rec->setby, (gint) (time(NULL)-rec->time)); channel->name, rec->ban, rec->setby, (gint) (time(NULL)-rec->time));
} }
signal_stop();
} }
static void cmd_invitelist(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) static void cmd_invitelist(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item)
@ -510,7 +516,7 @@ void fe_irc_commands_init(void)
command_bind("action", NULL, (SIGNAL_FUNC) cmd_action); command_bind("action", NULL, (SIGNAL_FUNC) cmd_action);
command_bind("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp); command_bind("ctcp", NULL, (SIGNAL_FUNC) cmd_ctcp);
command_bind("nctcp", NULL, (SIGNAL_FUNC) cmd_nctcp); command_bind("nctcp", NULL, (SIGNAL_FUNC) cmd_nctcp);
command_bind("banstat", NULL, (SIGNAL_FUNC) cmd_banstat); command_bind("ban", NULL, (SIGNAL_FUNC) cmd_ban);
command_bind("invitelist", NULL, (SIGNAL_FUNC) cmd_invitelist); command_bind("invitelist", NULL, (SIGNAL_FUNC) cmd_invitelist);
command_bind("join", NULL, (SIGNAL_FUNC) cmd_join); command_bind("join", NULL, (SIGNAL_FUNC) cmd_join);
command_bind("channel", NULL, (SIGNAL_FUNC) cmd_channel); command_bind("channel", NULL, (SIGNAL_FUNC) cmd_channel);
@ -531,7 +537,7 @@ void fe_irc_commands_deinit(void)
command_unbind("action", (SIGNAL_FUNC) cmd_action); command_unbind("action", (SIGNAL_FUNC) cmd_action);
command_unbind("ctcp", (SIGNAL_FUNC) cmd_ctcp); command_unbind("ctcp", (SIGNAL_FUNC) cmd_ctcp);
command_unbind("nctcp", (SIGNAL_FUNC) cmd_nctcp); command_unbind("nctcp", (SIGNAL_FUNC) cmd_nctcp);
command_unbind("banstat", (SIGNAL_FUNC) cmd_banstat); command_unbind("ban", (SIGNAL_FUNC) cmd_ban);
command_unbind("invitelist", (SIGNAL_FUNC) cmd_invitelist); command_unbind("invitelist", (SIGNAL_FUNC) cmd_invitelist);
command_unbind("join", (SIGNAL_FUNC) cmd_join); command_unbind("join", (SIGNAL_FUNC) cmd_join);
command_unbind("channel", (SIGNAL_FUNC) cmd_channel); command_unbind("channel", (SIGNAL_FUNC) cmd_channel);