mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Lots of changes again. Biggest ones:
- window's text buffer should work better - themes are almost working, you can change the text formats with /format - automatically try to rejoin the channel after 5 minutes if the join there failed because it was "temporarily unavailable" (netsplits) - generally cleaning code.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
969cfe8abc
commit
cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions
|
|
@ -14,4 +14,5 @@ libfe_common_irc_dcc_la_SOURCES = \
|
|||
module-formats.c
|
||||
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-formats.h
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include "irc/dcc/dcc.h"
|
||||
|
||||
#include "themes.h"
|
||||
#include "windows.h"
|
||||
|
||||
static void dcc_connected(DCC_REC *dcc)
|
||||
|
|
@ -427,10 +428,14 @@ void fe_dcc_init(void)
|
|||
command_bind("dcc ", NULL, (SIGNAL_FUNC) cmd_dcc_list);
|
||||
command_bind("dcc list", NULL, (SIGNAL_FUNC) cmd_dcc_list);
|
||||
signal_add("window item remove", (SIGNAL_FUNC) dcc_chat_closed);
|
||||
|
||||
theme_register(fecommon_irc_dcc_formats);
|
||||
}
|
||||
|
||||
void fe_dcc_deinit(void)
|
||||
{
|
||||
theme_unregister();
|
||||
|
||||
signal_remove("dcc connected", (SIGNAL_FUNC) dcc_connected);
|
||||
signal_remove("dcc rejected", (SIGNAL_FUNC) dcc_rejected);
|
||||
signal_remove("dcc closed", (SIGNAL_FUNC) dcc_closed);
|
||||
|
|
|
|||
|
|
@ -21,39 +21,40 @@
|
|||
#include "module.h"
|
||||
#include "printtext.h"
|
||||
|
||||
FORMAT_REC fecommon_irc_dcc_formats[] =
|
||||
{
|
||||
{ MODULE_NAME, "IRC", 0 },
|
||||
FORMAT_REC fecommon_irc_dcc_formats[] = {
|
||||
{ MODULE_NAME, "IRC", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "DCC", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "DCC", 0 },
|
||||
|
||||
{ "own_dcc", "%K[%rdcc%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_dcc_me", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "own_dcc_ctcp", "%K[%rctcp%K(%R$0%K)]%n $1 $2", 3, { 0, 0, 0 } },
|
||||
{ "dcc_msg", "%K[%G$0%K(%gdcc%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "action_dcc", "%W (*dcc*) $0%n $1", 2, { 0, 0 } },
|
||||
{ "dcc_ctcp", "%g>>> DCC CTCP received from %_$0%_%K: %g$1", 2, { 0, 0 } },
|
||||
{ "dcc_chat", "%gDCC CHAT from %_$0%_ %K[%g$1 port $2%K]", 3, { 0, 0, 1 } },
|
||||
{ "dcc_chat_not_found", "%gNo DCC CHAT connection open to %_$0", 1, { 0 } },
|
||||
{ "dcc_chat_connected", "%gDCC %_CHAT%_ connection with %_$0%_ %K%K[%g$1 port $2%K]%g established", 3, { 0, 0, 1 } },
|
||||
{ "dcc_chat_disconnected", "%gDCC lost chat to %_$0", 1, { 0 } },
|
||||
{ "dcc_send", "%gDCC SEND from %_$0%_ %K[%g$1 port $2%K]: %g$3 %K[%g$4 bytes%K]", 5, { 0, 0, 1, 0, 2 } },
|
||||
{ "dcc_send_exists", "%gDCC already sending file %G$0%g for %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_send_not_found", "%gDCC not sending file %G$1%g to %_$0", 2, { 0, 0 } },
|
||||
{ "dcc_send_file_not_found", "%gDCC file not found: %G$0%g", 1, { 0 } },
|
||||
{ "dcc_send_connected", "%gDCC sending file %G$0%g for %_$1%_ %K[%g$2 port $3%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "dcc_send_complete", "%gDCC sent file $0 %K[%g%_$1%_kb%K]%g for %_$2%_ in %_$3%_ secs %K[%g%_$4kb/s%_%K]", 5, { 0, 2, 0, 2, 3 } },
|
||||
{ "dcc_send_aborted", "%gDCC aborted sending file $0 for %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_get_not_found", "%gDCC no file offered by %_$0", 1, { 0 } },
|
||||
{ "dcc_get_connected", "%gDCC receiving file %G$0%g from %_$1%_ %K[%g$2 port $3%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "dcc_get_complete", "%gDCC received file %G$0%g %K[%g$1kb%K]%g from %_$2%_ in %_$3%_ secs %K[%g$4kb/s%K]", 5, { 0, 2, 0, 2, 3 } },
|
||||
{ "dcc_get_aborted", "%gDCC aborted receiving file $0 from %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_unknown_ctcp", "%gDCC unknown ctcp %G$0%g from %_$1%_ %K[%g$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_unknown_reply", "%gDCC unknown reply %G$0%g from %_$1%_ %K[%g$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_unknown_type", "%gDCC unknown type %_$0", 1, { 0 } },
|
||||
{ "dcc_connect_error", "%gDCC can't connect to %_$0%_ port %_$1", 2, { 0, 1 } },
|
||||
{ "dcc_cant_create", "%gDCC can't create file %G$0%g", 1, { 0 } },
|
||||
{ "dcc_rejected", "%gDCC %G$0%g was rejected by %_$1%_ %K[%G$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_close", "%gDCC %G$0%g close for %_$1%_ %K[%G$2%K]", 3, { 0, 0, 0 } }
|
||||
{ "own_dcc", "%K[%rdcc%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_dcc_me", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "own_dcc_ctcp", "%K[%rctcp%K(%R$0%K)]%n $1 $2", 3, { 0, 0, 0 } },
|
||||
{ "dcc_msg", "%K[%G$0%K(%gdcc%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "action_dcc", "%W (*dcc*) $0%n $1", 2, { 0, 0 } },
|
||||
{ "dcc_ctcp", "%g>>> DCC CTCP received from %_$0%_%K: %g$1", 2, { 0, 0 } },
|
||||
{ "dcc_chat", "%gDCC CHAT from %_$0%_ %K[%g$1 port $2%K]", 3, { 0, 0, 1 } },
|
||||
{ "dcc_chat_not_found", "%gNo DCC CHAT connection open to %_$0", 1, { 0 } },
|
||||
{ "dcc_chat_connected", "%gDCC %_CHAT%_ connection with %_$0%_ %K%K[%g$1 port $2%K]%g established", 3, { 0, 0, 1 } },
|
||||
{ "dcc_chat_disconnected", "%gDCC lost chat to %_$0", 1, { 0 } },
|
||||
{ "dcc_send", "%gDCC SEND from %_$0%_ %K[%g$1 port $2%K]: %g$3 %K[%g$4 bytes%K]", 5, { 0, 0, 1, 0, 2 } },
|
||||
{ "dcc_send_exists", "%gDCC already sending file %G$0%g for %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_send_not_found", "%gDCC not sending file %G$1%g to %_$0", 2, { 0, 0 } },
|
||||
{ "dcc_send_file_not_found", "%gDCC file not found: %G$0%g", 1, { 0 } },
|
||||
{ "dcc_send_connected", "%gDCC sending file %G$0%g for %_$1%_ %K[%g$2 port $3%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "dcc_send_complete", "%gDCC sent file $0 %K[%g%_$1%_kb%K]%g for %_$2%_ in %_$3%_ secs %K[%g%_$4kb/s%_%K]", 5, { 0, 2, 0, 2, 3 } },
|
||||
{ "dcc_send_aborted", "%gDCC aborted sending file $0 for %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_get_not_found", "%gDCC no file offered by %_$0", 1, { 0 } },
|
||||
{ "dcc_get_connected", "%gDCC receiving file %G$0%g from %_$1%_ %K[%g$2 port $3%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "dcc_get_complete", "%gDCC received file %G$0%g %K[%g$1kb%K]%g from %_$2%_ in %_$3%_ secs %K[%g$4kb/s%K]", 5, { 0, 2, 0, 2, 3 } },
|
||||
{ "dcc_get_aborted", "%gDCC aborted receiving file $0 from %_$1%_", 2, { 0, 0 } },
|
||||
{ "dcc_unknown_ctcp", "%gDCC unknown ctcp %G$0%g from %_$1%_ %K[%g$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_unknown_reply", "%gDCC unknown reply %G$0%g from %_$1%_ %K[%g$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_unknown_type", "%gDCC unknown type %_$0", 1, { 0 } },
|
||||
{ "dcc_connect_error", "%gDCC can't connect to %_$0%_ port %_$1", 2, { 0, 1 } },
|
||||
{ "dcc_cant_create", "%gDCC can't create file %G$0%g", 1, { 0 } },
|
||||
{ "dcc_rejected", "%gDCC %G$0%g was rejected by %_$1%_ %K[%G$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "dcc_close", "%gDCC %G$0%g close for %_$1%_ %K[%G$2%K]", 3, { 0, 0, 0 } },
|
||||
|
||||
{ NULL, NULL, 0 }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_dcc_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_dcc_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
3
src/fe-common/irc/dcc/module.h
Normal file
3
src/fe-common/irc/dcc/module.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "fe-common/irc/dcc"
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "module.h"
|
||||
#include "module-formats.h"
|
||||
#include "signals.h"
|
||||
#include "args.h"
|
||||
#include "misc.h"
|
||||
|
|
@ -27,6 +28,7 @@
|
|||
|
||||
#include "server-setup.h"
|
||||
|
||||
#include "themes.h"
|
||||
#include "completion.h"
|
||||
|
||||
void fe_channels_init(void);
|
||||
|
|
@ -100,6 +102,8 @@ void fe_common_irc_init(void)
|
|||
settings_add_bool("lookandfeel", "show_away_once", TRUE);
|
||||
settings_add_bool("lookandfeel", "show_quit_once", FALSE);
|
||||
|
||||
theme_register(fecommon_irc_formats);
|
||||
|
||||
fe_channels_init();
|
||||
fe_irc_commands_init();
|
||||
fe_irc_server_init();
|
||||
|
|
@ -132,6 +136,8 @@ void fe_common_irc_deinit(void)
|
|||
fe_query_deinit();
|
||||
completion_deinit();
|
||||
irc_window_activity_deinit();
|
||||
|
||||
theme_unregister();
|
||||
}
|
||||
|
||||
void fe_common_irc_finish_init(void)
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@ libfe_common_irc_flood_la_SOURCES = \
|
|||
fe-flood.c \
|
||||
module-formats.c
|
||||
|
||||
noinst_headers = \
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-formats.h
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
#include "irc-server.h"
|
||||
#include "irc/flood/autoignore.h"
|
||||
|
||||
#include "themes.h"
|
||||
|
||||
static void event_autoignore_new(IRC_SERVER_REC *server, AUTOIGNORE_REC *ignore)
|
||||
{
|
||||
g_return_if_fail(ignore != NULL);
|
||||
|
|
@ -45,10 +47,14 @@ void fe_flood_init(void)
|
|||
{
|
||||
signal_add("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
|
||||
signal_add("autoignore remove", (SIGNAL_FUNC) event_autoignore_remove);
|
||||
|
||||
theme_register(fecommon_irc_flood_formats);
|
||||
}
|
||||
|
||||
void fe_flood_deinit(void)
|
||||
{
|
||||
theme_unregister();
|
||||
|
||||
signal_remove("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
|
||||
signal_remove("autoignore remove", (SIGNAL_FUNC) event_autoignore_remove);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,11 +23,13 @@
|
|||
|
||||
FORMAT_REC fecommon_irc_flood_formats[] =
|
||||
{
|
||||
{ MODULE_NAME, "Flood", 0 },
|
||||
{ MODULE_NAME, "Flood", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Autoignore", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Autoignore", 0 },
|
||||
|
||||
{ "autoignore", "Flood detected from %_$0%_, autoignoring for %_$1%_ minutes", 2, { 0, 1 } },
|
||||
{ "autounignore", "Unignoring %_$0", 1, { 0 } }
|
||||
{ "autoignore", "Flood detected from %_$0%_, autoignoring for %_$1%_ minutes", 2, { 0, 1 } },
|
||||
{ "autounignore", "Unignoring %_$0", 1, { 0 } },
|
||||
|
||||
{ NULL, NULL, 0 }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,6 +10,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_flood_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_flood_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
3
src/fe-common/irc/flood/module.h
Normal file
3
src/fe-common/irc/flood/module.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "fe-common/irc/flood"
|
||||
|
|
@ -21,173 +21,173 @@
|
|||
#include "module.h"
|
||||
#include "printtext.h"
|
||||
|
||||
FORMAT_REC fecommon_irc_formats[] =
|
||||
{
|
||||
{ MODULE_NAME, "IRC", 0 },
|
||||
FORMAT_REC fecommon_irc_formats[] = {
|
||||
{ MODULE_NAME, "IRC", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Server", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Server", 0 },
|
||||
|
||||
{ "lag_disconnected", "No PONG reply from server %_$0%_ in $1 seconds, disconnecting", 2, { 0, 1 } },
|
||||
{ "disconnected", "Disconnected from %_$0%_ %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "server_list", "%_$0%_: $1:$2 ($3)", 5, { 0, 0, 1, 0, 0 } },
|
||||
{ "server_lookup_list", "%_$0%_: $1:$2 ($3) (connecting...)", 5, { 0, 0, 1, 0, 0 } },
|
||||
{ "server_reconnect_list", "%_$0%_: $1:$2 ($3) ($5 left before reconnecting)", 6, { 0, 0, 1, 0, 0, 0 } },
|
||||
{ "server_reconnect_removed", "Removed reconnection to server %_$0%_ port %_$1%_", 3, { 0, 1, 0 } },
|
||||
{ "server_reconnect_not_found", "Reconnection tag %_$0%_ not found", 1, { 0 } },
|
||||
{ "query_server_changed", "Query with %_$2%_ changed to server %_$1%_", 3, { 0, 0, 0 } },
|
||||
{ "setupserver_added", "Server $0 saved", 2, { 0, 0 } },
|
||||
{ "setupserver_removed", "Server $0 removed", 2, { 0, 0 } },
|
||||
{ "setupserver_not_found", "Server $0 not found", 2, { 0, 0 } },
|
||||
{ "setupserver_header", "Server Port IRC Net Settings", 0 },
|
||||
{ "setupserver_line", "%|$[!20]0 $[5]1 $[10]2 $3", 4, { 0, 1, 0, 0 } },
|
||||
{ "setupserver_footer", "", 0 },
|
||||
{ "netsplit", "[%_$2%_] %RNetsplit%n detected between servers %_$0%_ and %_$1%_%:Use /NETSPLIT to see who left", 3, { 0, 0, 0 } },
|
||||
{ "no_netsplits", "There are no net splits", 0 },
|
||||
{ "netsplits_header", "Nick Channel Server Splitted server", 0 },
|
||||
{ "netsplits_line", "$[9]0 $[10]1 $[20]2 $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "netsplits_footer", "", 0 },
|
||||
{ "lag_disconnected", "No PONG reply from server %_$0%_ in $1 seconds, disconnecting", 2, { 0, 1 } },
|
||||
{ "disconnected", "Disconnected from %_$0%_ %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "server_list", "%_$0%_: $1:$2 ($3)", 5, { 0, 0, 1, 0, 0 } },
|
||||
{ "server_lookup_list", "%_$0%_: $1:$2 ($3) (connecting...)", 5, { 0, 0, 1, 0, 0 } },
|
||||
{ "server_reconnect_list", "%_$0%_: $1:$2 ($3) ($5 left before reconnecting)", 6, { 0, 0, 1, 0, 0, 0 } },
|
||||
{ "server_reconnect_removed", "Removed reconnection to server %_$0%_ port %_$1%_", 3, { 0, 1, 0 } },
|
||||
{ "server_reconnect_not_found", "Reconnection tag %_$0%_ not found", 1, { 0 } },
|
||||
{ "query_server_changed", "Query with %_$2%_ changed to server %_$1%_", 3, { 0, 0, 0 } },
|
||||
{ "setupserver_added", "Server $0 saved", 2, { 0, 0 } },
|
||||
{ "setupserver_removed", "Server $0 removed", 2, { 0, 0 } },
|
||||
{ "setupserver_not_found", "Server $0 not found", 2, { 0, 0 } },
|
||||
{ "setupserver_header", "Server Port IRC Net Settings", 0 },
|
||||
{ "setupserver_line", "%|$[!20]0 $[5]1 $[10]2 $3", 4, { 0, 1, 0, 0 } },
|
||||
{ "setupserver_footer", "", 0 },
|
||||
{ "netsplit", "%RNetsplit%n detected between servers %_$0%_ and %_$1%_%:Use /NETSPLIT to see who left", 2, { 0, 0 } },
|
||||
{ "no_netsplits", "There are no net splits", 0 },
|
||||
{ "netsplits_header", "Nick Channel Server Splitted server", 0 },
|
||||
{ "netsplits_line", "$[9]0 $[10]1 $[20]2 $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "netsplits_footer", "", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Channels", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Channels", 0 },
|
||||
|
||||
{ "join", "%c%_$0%_ %K[%c$1%K]%n has joined %_$2", 3, { 0, 0, 0 } },
|
||||
{ "part", "%c$0 %K[%n$1%K]%n has left %_$2%_ %K[%n$3%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "joinerror_toomany", "Cannot join to channel %_$0%_ %K(%nYou have joined to too many channels%K)", 1, { 0 } },
|
||||
{ "joinerror_full", "Cannot join to channel %_$0%_ %K(%nChannel is full%K)", 1, { 0 } },
|
||||
{ "joinerror_invite", "Cannot join to channel %_$0%_ %K(%nYou must be invited%K)", 1, { 0 } },
|
||||
{ "joinerror_banned", "Cannot join to channel %_$0%_ %K(%nYou are banned%K)", 1, { 0 } },
|
||||
{ "joinerror_bad_key", "Cannot join to channel %_$0%_ %K(%nBad channel key%K)", 1, { 0 } },
|
||||
{ "joinerror_bad_mask", "Cannot join to channel %_$0%_ %K(%nBad channel mask%K)", 1, { 0 } },
|
||||
{ "joinerror_unavail", "Cannot join to channel %_$0%_ %K(%nChannel is temporarily unavailable%K)", 1, { 0 } },
|
||||
{ "kick", "%c$0%n was kicked from %_$1%_ by %_$2%_ %K[%n$3%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "quit", "%c$0 %K[%n$1%K]%n has quit IRC %K[%n$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "quit_once", "%_$3%_ %c$0 %K[%n$1%K]%n has quit IRC %K[%n$2%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "invite", "%_$0%_ invites you to %_$1", 2, { 0, 0 } },
|
||||
{ "inviting", "Inviting $0 to %_$1", 2, { 0, 0 } },
|
||||
{ "not_invited", "You have not been invited to a channel!", 0 },
|
||||
{ "names", "%K[%g%_Users%_%K(%g$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "endofnames", "%g%_$0%_%K:%n Total of %_$1%_ nicks %K[%n%_$2%_ ops, %_$3%_ voices, %_$4%_ normal%K]", 5, { 0, 1, 1, 1, 1 } },
|
||||
{ "channel_created", "Channel %_$0%_ created $1", 2, { 0, 0 } },
|
||||
{ "topic", "Topic for %c$0%K:%n $1", 2, { 0, 0 } },
|
||||
{ "no_topic", "No topic set for %c$0", 1, { 0 } },
|
||||
{ "new_topic", "%_$0%_ changed the topic of %c$1%n to%K:%n $2", 3, { 0, 0, 0 } },
|
||||
{ "topic_unset", "Topic unset by %_$0%_ on %c$1", 2, { 0, 0 } },
|
||||
{ "topic_info", "Topic set by %_$0%_ %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "chanmode_change", "mode/%c$0 %K[%n$1%K]%n by %_$2", 3, { 0, 0, 0 } },
|
||||
{ "server_chanmode_change", "%RServerMode/%c$0 %K[%n$1%K]%n by %_$2", 3, { 0, 0, 0 } },
|
||||
{ "channel_mode", "mode/%c$0 %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "bantype", "Ban type changed to %_$0", 1, { 0 } },
|
||||
{ "banlist", "%_$0%_: ban %c$1", 2, { 0, 0 } },
|
||||
{ "banlist_long", "%_$0%_: ban %c$1 %K[%nby %_$2%_, $3 secs ago%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "ebanlist", "%_$0%_: ban exception %c$1", 2, { 0, 0 } },
|
||||
{ "ebanlist_long", "%_$0%_: ban exception %c$1 %K[%nby %_$2%_, $3 secs ago%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "invitelist", "%_$0%_: invite %c$1", 2, { 0, 0 } },
|
||||
{ "no_such_channel", "$0: No such channel", 1, { 0 } },
|
||||
{ "channel_synced", "Join to %_$0%_ was synced in %_$1%_ secs", 2, { 0, 2 } },
|
||||
{ "not_in_channels", "You are not on any channels", 0 },
|
||||
{ "current_channel", "Current channel $0", 1, { 0 } },
|
||||
{ "chanlist_header", "You are on the following channels:", 0 },
|
||||
{ "chanlist_line", "$[-10]0 %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "chansetup_not_found", "Channel $0 not found", 2, { 0, 0 } },
|
||||
{ "chansetup_added", "Channel $0 saved", 2, { 0, 0 } },
|
||||
{ "chansetup_removed", "Channel $0 removed", 2, { 0, 0 } },
|
||||
{ "chansetup_header", "Channel IRC net Password Settings", 0 },
|
||||
{ "chansetup_line", "$[15]0 %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "chansetup_footer", "", 0 },
|
||||
{ "join", "%c%_$0%_ %K[%c$1%K]%n has joined %_$2", 3, { 0, 0, 0 } },
|
||||
{ "part", "%c$0 %K[%n$1%K]%n has left %_$2%_ %K[%n$3%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "joinerror_toomany", "Cannot join to channel %_$0%_ %K(%nYou have joined to too many channels%K)", 1, { 0 } },
|
||||
{ "joinerror_full", "Cannot join to channel %_$0%_ %K(%nChannel is full%K)", 1, { 0 } },
|
||||
{ "joinerror_invite", "Cannot join to channel %_$0%_ %K(%nYou must be invited%K)", 1, { 0 } },
|
||||
{ "joinerror_banned", "Cannot join to channel %_$0%_ %K(%nYou are banned%K)", 1, { 0 } },
|
||||
{ "joinerror_bad_key", "Cannot join to channel %_$0%_ %K(%nBad channel key%K)", 1, { 0 } },
|
||||
{ "joinerror_bad_mask", "Cannot join to channel %_$0%_ %K(%nBad channel mask%K)", 1, { 0 } },
|
||||
{ "joinerror_unavail", "Cannot join to channel %_$0%_ %K(%nChannel is temporarily unavailable%K)", 1, { 0 } },
|
||||
{ "kick", "%c$0%n was kicked from %_$1%_ by %_$2%_ %K[%n$3%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "quit", "%c$0 %K[%n$1%K]%n has quit IRC %K[%n$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "quit_once", "%_$3%_ %c$0 %K[%n$1%K]%n has quit IRC %K[%n$2%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "invite", "%_$0%_ invites you to %_$1", 2, { 0, 0 } },
|
||||
{ "inviting", "Inviting $0 to %_$1", 2, { 0, 0 } },
|
||||
{ "not_invited", "You have not been invited to a channel!", 0 },
|
||||
{ "names", "%K[%g%_Users%_%K(%g$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "endofnames", "%g%_$0%_%K:%n Total of %_$1%_ nicks %K[%n%_$2%_ ops, %_$3%_ voices, %_$4%_ normal%K]", 5, { 0, 1, 1, 1, 1 } },
|
||||
{ "channel_created", "Channel %_$0%_ created $1", 2, { 0, 0 } },
|
||||
{ "topic", "Topic for %c$0%K:%n $1", 2, { 0, 0 } },
|
||||
{ "no_topic", "No topic set for %c$0", 1, { 0 } },
|
||||
{ "new_topic", "%_$0%_ changed the topic of %c$1%n to%K:%n $2", 3, { 0, 0, 0 } },
|
||||
{ "topic_unset", "Topic unset by %_$0%_ on %c$1", 2, { 0, 0 } },
|
||||
{ "topic_info", "Topic set by %_$0%_ %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "chanmode_change", "mode/%c$0 %K[%n$1%K]%n by %_$2", 3, { 0, 0, 0 } },
|
||||
{ "server_chanmode_change", "%RServerMode/%c$0 %K[%n$1%K]%n by %_$2", 3, { 0, 0, 0 } },
|
||||
{ "channel_mode", "mode/%c$0 %K[%n$1%K]", 2, { 0, 0 } },
|
||||
{ "bantype", "Ban type changed to %_$0", 1, { 0 } },
|
||||
{ "banlist", "%_$0%_: ban %c$1", 2, { 0, 0 } },
|
||||
{ "banlist_long", "%_$0%_: ban %c$1 %K[%nby %_$2%_, $3 secs ago%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "ebanlist", "%_$0%_: ban exception %c$1", 2, { 0, 0 } },
|
||||
{ "ebanlist_long", "%_$0%_: ban exception %c$1 %K[%nby %_$2%_, $3 secs ago%K]", 4, { 0, 0, 0, 1 } },
|
||||
{ "invitelist", "%_$0%_: invite %c$1", 2, { 0, 0 } },
|
||||
{ "no_such_channel", "$0: No such channel", 1, { 0 } },
|
||||
{ "channel_synced", "Join to %_$0%_ was synced in %_$1%_ secs", 2, { 0, 2 } },
|
||||
{ "not_in_channels", "You are not on any channels", 0 },
|
||||
{ "current_channel", "Current channel $0", 1, { 0 } },
|
||||
{ "chanlist_header", "You are on the following channels:", 0 },
|
||||
{ "chanlist_line", "$[-10]0 %|+$1 ($2): $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "chansetup_not_found", "Channel $0 not found", 2, { 0, 0 } },
|
||||
{ "chansetup_added", "Channel $0 saved", 2, { 0, 0 } },
|
||||
{ "chansetup_removed", "Channel $0 removed", 2, { 0, 0 } },
|
||||
{ "chansetup_header", "Channel IRC net Password Settings", 0 },
|
||||
{ "chansetup_line", "$[15]0 %|$[10]1 $[10]2 $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "chansetup_footer", "", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Nick", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Nick", 0 },
|
||||
|
||||
{ "usermode_change", "Mode change %K[%n%_$0%_%K]%n for user %c$1", 2, { 0, 0 } },
|
||||
{ "user_mode", "Your user mode is %K[%n%_$0%_%K]", 1, { 0 } },
|
||||
{ "away", "You have been marked as being away", 0 },
|
||||
{ "unaway", "You are no longer marked as being away", 0 },
|
||||
{ "nick_away", "$0 is away: $1", 2, { 0, 0 } },
|
||||
{ "no_such_nick", "$0: No such nick/channel", 1, { 0 } },
|
||||
{ "your_nick", "Your nickname is $0", 1, { 0 } },
|
||||
{ "your_nick_changed", "You're now known as %c$0", 1, { 0 } },
|
||||
{ "nick_changed", "%_$0%_ is now known as %c$1", 2, { 0, 0 } },
|
||||
{ "nick_in_use", "Nick %_$0%_ is already in use", 1, { 0 } },
|
||||
{ "nick_unavailable", "Nick %_$0%_ is temporarily unavailable", 1, { 0 } },
|
||||
{ "your_nick_owned", "Your nick is owned by %_$3%_ %K[%n$1@$2%K]", 4, { 0, 0, 0, 0 } },
|
||||
{ "usermode_change", "Mode change %K[%n%_$0%_%K]%n for user %c$1", 2, { 0, 0 } },
|
||||
{ "user_mode", "Your user mode is %K[%n%_$0%_%K]", 1, { 0 } },
|
||||
{ "away", "You have been marked as being away", 0 },
|
||||
{ "unaway", "You are no longer marked as being away", 0 },
|
||||
{ "nick_away", "$0 is away: $1", 2, { 0, 0 } },
|
||||
{ "no_such_nick", "$0: No such nick/channel", 1, { 0 } },
|
||||
{ "your_nick", "Your nickname is $0", 1, { 0 } },
|
||||
{ "your_nick_changed", "You're now known as %c$0", 1, { 0 } },
|
||||
{ "nick_changed", "%_$0%_ is now known as %c$1", 2, { 0, 0 } },
|
||||
{ "nick_in_use", "Nick %_$0%_ is already in use", 1, { 0 } },
|
||||
{ "nick_unavailable", "Nick %_$0%_ is temporarily unavailable", 1, { 0 } },
|
||||
{ "your_nick_owned", "Your nick is owned by %_$3%_ %K[%n$1@$2%K]", 4, { 0, 0, 0, 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Who queries", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Who queries", 0 },
|
||||
|
||||
{ "whois", "%_$0%_ %K[%n$1@$2%K]%n%: ircname : $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "whois_idle", " idle : $1 hours $2 mins $3 secs", 4, { 0, 1, 1, 1 } },
|
||||
{ "whois_idle_signon", " idle : $1 hours $2 mins $3 secs %K[%nsignon: $4%K]", 5, { 0, 1, 1, 1, 0 } },
|
||||
{ "whois_server", " server : $1 %K[%n$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "whois_oper", " : %_IRC operator%_", 1, { 0 } },
|
||||
{ "whois_channels", " channels : $1", 2, { 0, 0 } },
|
||||
{ "whois_away", " away : $1", 2, { 0, 0 } },
|
||||
{ "end_of_whois", "End of WHOIS", 1, { 0 } },
|
||||
{ "who", "$[-10]0 %|%_$[!9]1%_ $[!3]2 $[!2]3 $4@$5 %K(%W$6%K)", 7, { 0, 0, 0, 0, 0, 0, 0 } },
|
||||
{ "end_of_who", "End of /WHO list", 1, { 0 } },
|
||||
{ "whois", "%_$0%_ %K[%n$1@$2%K]%n%: ircname : $3", 4, { 0, 0, 0, 0 } },
|
||||
{ "whois_idle", " idle : $1 hours $2 mins $3 secs", 4, { 0, 1, 1, 1 } },
|
||||
{ "whois_idle_signon", " idle : $1 hours $2 mins $3 secs %K[%nsignon: $4%K]", 5, { 0, 1, 1, 1, 0 } },
|
||||
{ "whois_server", " server : $1 %K[%n$2%K]", 3, { 0, 0, 0 } },
|
||||
{ "whois_oper", " : %_IRC operator%_", 1, { 0 } },
|
||||
{ "whois_channels", " channels : $1", 2, { 0, 0 } },
|
||||
{ "whois_away", " away : $1", 2, { 0, 0 } },
|
||||
{ "end_of_whois", "End of WHOIS", 1, { 0 } },
|
||||
{ "who", "$[-10]0 %|%_$[!9]1%_ $[!3]2 $[!2]3 $4@$5 %K(%W$6%K)", 7, { 0, 0, 0, 0, 0, 0, 0 } },
|
||||
{ "end_of_who", "End of /WHO list", 1, { 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Your messages", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Your messages", 0 },
|
||||
|
||||
{ "own_msg", "%K<%n$2%W$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "own_msg_channel", "%K<%n$3%W$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "own_msg_private", "%K[%rmsg%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_msg_private_query", "%K<%W$2%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "own_notice", "%K[%rnotice%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_me", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "own_ctcp", "%K[%rctcp%K(%R$0%K)]%n $1 $2", 3, { 0, 0, 0 } },
|
||||
{ "own_msg", "%K<%n$2%W$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "own_msg_channel", "%K<%n$3%W$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "own_msg_private", "%K[%rmsg%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_msg_private_query", "%K<%W$2%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "own_notice", "%K[%rnotice%K(%R$0%K)]%n $1", 2, { 0, 0 } },
|
||||
{ "own_me", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "own_ctcp", "%K[%rctcp%K(%R$0%K)]%n $1 $2", 3, { 0, 0, 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Received messages", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Received messages", 0 },
|
||||
|
||||
{ "pubmsg_me", "%K<%n$2%Y$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "pubmsg_me_channel", "%K<%n$3%Y$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "pubmsg_hilight", "%K<%n$3$0$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "pubmsg_hilight_channel", "%K<%n$4$0$1%K:%c$2%K>%n %|$3", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "pubmsg", "%K<%n$2$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "pubmsg_channel", "%K<%n$3$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "msg_private", "%K[%R$0%K(%r$1%K)]%n $2", 3, { 0, 0, 0 } },
|
||||
{ "msg_private_query", "%K<%R$0%K>%n %|$2", 3, { 0, 0, 0 } },
|
||||
{ "notice_server", "%g!$0%n $1", 2, { 0, 0 } },
|
||||
{ "notice_public", "%K-%M$0%K:%m$1%K-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "notice_public_ops", "%K-%M$0%K:%m@$1%K-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "notice_private", "%K-%M$0%K(%m$1%K)-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_private", "%W (*) $0%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_private_query", "%W * $0%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_public", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "action_public_channel", "%W * $0%K:%c$1%n $2", 3, { 0, 0, 0 } },
|
||||
{ "pubmsg_me", "%K<%n$2%Y$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "pubmsg_me_channel", "%K<%n$3%Y$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "pubmsg_hilight", "%K<%n$3$0$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "pubmsg_hilight_channel", "%K<%n$4$0$1%K:%c$2%K>%n %|$3", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "pubmsg", "%K<%n$2$0%K>%n %|$1", 3, { 0, 0, 0 } },
|
||||
{ "pubmsg_channel", "%K<%n$3$0%K:%c$1%K>%n %|$2", 4, { 0, 0, 0, 0 } },
|
||||
{ "msg_private", "%K[%R$0%K(%r$1%K)]%n $2", 3, { 0, 0, 0 } },
|
||||
{ "msg_private_query", "%K<%R$0%K>%n %|$2", 3, { 0, 0, 0 } },
|
||||
{ "notice_server", "%g!$0%n $1", 2, { 0, 0 } },
|
||||
{ "notice_public", "%K-%M$0%K:%m$1%K-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "notice_public_ops", "%K-%M$0%K:%m@$1%K-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "notice_private", "%K-%M$0%K(%m$1%K)-%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_private", "%W (*) $0%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_private_query", "%W * $0%n $2", 3, { 0, 0, 0 } },
|
||||
{ "action_public", "%W * $0%n $1", 2, { 0, 0 } },
|
||||
{ "action_public_channel", "%W * $0%K:%c$1%n $2", 3, { 0, 0, 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "CTCPs", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "CTCPs", 0 },
|
||||
|
||||
{ "ctcp_reply", "CTCP %_$0%_ reply from %_$1%_%K:%n $2", 3, { 0, 0, 0 } },
|
||||
{ "ctcp_reply_channel", "CTCP %_$0%_ reply from %_$1%_ in channel %_$4%_%K:%n $2", 4, { 0, 0, 0, 0 } },
|
||||
{ "ctcp_ping_reply", "CTCP %_PING%_ reply from %_$0%_: $1.$2 seconds", 3, { 0, 2, 2 } },
|
||||
{ "ctcp_requested", "%g>>> %_$0%_ %K[%g$1%K] %grequested %_$2%_ from %_$3", 4, { 0, 0, 0, 0 } },
|
||||
{ "ctcp_reply", "CTCP %_$0%_ reply from %_$1%_%K:%n $2", 3, { 0, 0, 0 } },
|
||||
{ "ctcp_reply_channel", "CTCP %_$0%_ reply from %_$1%_ in channel %_$4%_%K:%n $2", 4, { 0, 0, 0, 0 } },
|
||||
{ "ctcp_ping_reply", "CTCP %_PING%_ reply from %_$0%_: $1.$2 seconds", 3, { 0, 2, 2 } },
|
||||
{ "ctcp_requested", "%g>>> %_$0%_ %K[%g$1%K] %grequested %_$2%_ from %_$3", 4, { 0, 0, 0, 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Other server events", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Other server events", 0 },
|
||||
|
||||
{ "online", "Users online: %_$0", 1, { 0 } },
|
||||
{ "pong", "PONG received from $0: $1", 2, { 0, 0 } },
|
||||
{ "wallops", "%WWALLOP%n $0: $1", 2, { 0, 0 } },
|
||||
{ "action_wallops", "%WWALLOP * $0%n $1", 2, { 0, 0 } },
|
||||
{ "error", "%_ERROR%_ $0", 1, { 0 } },
|
||||
{ "unknown_mode", "Unknown mode character $0", 1, { 0 } },
|
||||
{ "not_chanop", "You're not channel operator in $0", 1, { 0 } },
|
||||
{ "online", "Users online: %_$0", 1, { 0 } },
|
||||
{ "pong", "PONG received from $0: $1", 2, { 0, 0 } },
|
||||
{ "wallops", "%WWALLOP%n $0: $1", 2, { 0, 0 } },
|
||||
{ "action_wallops", "%WWALLOP * $0%n $1", 2, { 0, 0 } },
|
||||
{ "error", "%_ERROR%_ $0", 1, { 0 } },
|
||||
{ "unknown_mode", "Unknown mode character $0", 1, { 0 } },
|
||||
{ "not_chanop", "You're not channel operator in $0", 1, { 0 } },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Misc", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Misc", 0 },
|
||||
|
||||
{ "ignored", "Ignoring %_$1%_ from %_$0%_", 2, { 0, 0 } },
|
||||
{ "unignored", "Unignored %_$0%_", 1, { 0 } },
|
||||
{ "ignore_not_found", "%_$0%_ is not being ignored", 1, { 0 } },
|
||||
{ "ignore_no_ignores", "There are no ignores", 0 },
|
||||
{ "ignore_header", "Ignorance List:", 0 },
|
||||
{ "ignore_line", "$[-4]0 $1: $2 $3 $4", 5, { 1, 0, 0, 0, 0 } },
|
||||
{ "ignore_footer", "", 0 },
|
||||
{ "talking_in", "You are now talking in %_$0%_", 1, { 0 } },
|
||||
{ "no_query", "No query with %_$0%_", 1, { 0 } },
|
||||
{ "no_msgs_got", "You have not received a message from anyone yet", 0 },
|
||||
{ "no_msgs_sent", "You have not sent a message to anyone yet", 0 }
|
||||
};
|
||||
{ "ignored", "Ignoring %_$1%_ from %_$0%_", 2, { 0, 0 } },
|
||||
{ "unignored", "Unignored %_$0%_", 1, { 0 } },
|
||||
{ "ignore_not_found", "%_$0%_ is not being ignored", 1, { 0 } },
|
||||
{ "ignore_no_ignores", "There are no ignores", 0 },
|
||||
{ "ignore_header", "Ignorance List:", 0 },
|
||||
{ "ignore_line", "$[-4]0 $1: $2 $3 $4", 5, { 1, 0, 0, 0, 0 } },
|
||||
{ "ignore_footer", "", 0 },
|
||||
{ "talking_in", "You are now talking in %_$0%_", 1, { 0 } },
|
||||
{ "no_query", "No query with %_$0%_", 1, { 0 } },
|
||||
{ "no_msgs_got", "You have not received a message from anyone yet", 0 },
|
||||
{ "no_msgs_sent", "You have not sent a message to anyone yet", 0 },
|
||||
|
||||
{ NULL, NULL, 0 }
|
||||
|
|
|
|||
|
|
@ -162,6 +162,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@ libfe_common_irc_notifylist_la_SOURCES = \
|
|||
fe-notifylist.c \
|
||||
module-formats.c
|
||||
|
||||
noinst_headers = \
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-formats.h
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
#include "ircnet-setup.h"
|
||||
#include "irc/notifylist/notifylist.h"
|
||||
|
||||
#include "themes.h"
|
||||
|
||||
/* add the nick of a hostmask to list if it isn't there already */
|
||||
static GSList *mask_add_once(GSList *list, const char *mask)
|
||||
{
|
||||
|
|
@ -224,6 +226,8 @@ static void notifylist_unidle(IRC_SERVER_REC *server, const char *nick,
|
|||
|
||||
void fe_notifylist_init(void)
|
||||
{
|
||||
theme_register(fecommon_irc_notifylist_formats);
|
||||
|
||||
command_bind("notify", NULL, (SIGNAL_FUNC) cmd_notify);
|
||||
signal_add("notifylist joined", (SIGNAL_FUNC) notifylist_joined);
|
||||
signal_add("notifylist left", (SIGNAL_FUNC) notifylist_left);
|
||||
|
|
@ -233,6 +237,8 @@ void fe_notifylist_init(void)
|
|||
|
||||
void fe_notifylist_deinit(void)
|
||||
{
|
||||
theme_unregister();
|
||||
|
||||
command_unbind("notify", (SIGNAL_FUNC) cmd_notify);
|
||||
signal_remove("notifylist joined", (SIGNAL_FUNC) notifylist_joined);
|
||||
signal_remove("notifylist left", (SIGNAL_FUNC) notifylist_left);
|
||||
|
|
|
|||
|
|
@ -23,17 +23,19 @@
|
|||
|
||||
FORMAT_REC fecommon_irc_notifylist_formats[] =
|
||||
{
|
||||
{ MODULE_NAME, "Notifylist", 0 },
|
||||
{ MODULE_NAME, "Notifylist", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Notifylist", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Notifylist", 0 },
|
||||
|
||||
{ "notify_join", "%_$0%_ %K[%n$1@$2%K] [%n%_$3%_%K]%n has joined to $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_part", "%_$0%_ has left $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_away", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now away: $4", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unaway", "%_$0%_ %K[%n$4%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now unaway", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unidle", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n just stopped idling", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_online", "On $0: %_$1%_", 2, { 0, 0 } },
|
||||
{ "notify_offline", "Offline: $0", 1, { 0 } },
|
||||
{ "notify_list", "$0: $1 $2 $3", 4, { 0, 0, 0, 0 } }
|
||||
{ "notify_join", "%_$0%_ %K[%n$1@$2%K] [%n%_$3%_%K]%n has joined to $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_part", "%_$0%_ has left $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_away", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now away: $4", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unaway", "%_$0%_ %K[%n$4%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now unaway", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unidle", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n just stopped idling", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_online", "On $0: %_$1%_", 2, { 0, 0 } },
|
||||
{ "notify_offline", "Offline: $0", 1, { 0 } },
|
||||
{ "notify_list", "$0: $1 $2 $3", 4, { 0, 0, 0, 0 } },
|
||||
|
||||
{ NULL, NULL, 0 },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,6 +16,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_notifylist_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_notifylist_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
3
src/fe-common/irc/notifylist/module.h
Normal file
3
src/fe-common/irc/notifylist/module.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "fe-common/irc/notifylist"
|
||||
Loading…
Add table
Add a link
Reference in a new issue