forked from PsychoticNinja/irssi
Used Tabs instead of spaces and increased ABI_VERSION
This commit is contained in:
parent
f9595c03b1
commit
1bfe27c66e
@ -6,7 +6,7 @@
|
|||||||
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
|
#define IRSSI_GLOBAL_CONFIG "irssi.conf" /* config file name in /etc/ */
|
||||||
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
|
#define IRSSI_HOME_CONFIG "config" /* config file name in ~/.irssi/ */
|
||||||
|
|
||||||
#define IRSSI_ABI_VERSION 25
|
#define IRSSI_ABI_VERSION 26
|
||||||
|
|
||||||
#define DEFAULT_SERVER_ADD_PORT 6667
|
#define DEFAULT_SERVER_ADD_PORT 6667
|
||||||
#define DEFAULT_SERVER_ADD_TLS_PORT 6697
|
#define DEFAULT_SERVER_ADD_TLS_PORT 6697
|
||||||
|
@ -85,7 +85,7 @@ const char *get_irssi_config(void)
|
|||||||
|
|
||||||
static void sig_hup(int signo)
|
static void sig_hup(int signo)
|
||||||
{
|
{
|
||||||
sighup_received = TRUE;
|
sighup_received = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void read_settings(void)
|
static void read_settings(void)
|
||||||
@ -108,7 +108,7 @@ static void read_settings(void)
|
|||||||
sigemptyset (&act.sa_mask);
|
sigemptyset (&act.sa_mask);
|
||||||
act.sa_flags = 0;
|
act.sa_flags = 0;
|
||||||
|
|
||||||
act.sa_handler = sig_hup;
|
act.sa_handler = sig_hup;
|
||||||
sigaction(SIGHUP, &act, NULL);
|
sigaction(SIGHUP, &act, NULL);
|
||||||
|
|
||||||
for (n = 0; n < sizeof(signals)/sizeof(signals[0]); n++) {
|
for (n = 0; n < sizeof(signals)/sizeof(signals[0]); n++) {
|
||||||
|
@ -340,14 +340,14 @@ int main(int argc, char **argv)
|
|||||||
can call our dirty-checker after each iteration */
|
can call our dirty-checker after each iteration */
|
||||||
while (!quitting) {
|
while (!quitting) {
|
||||||
if (sighup_received) {
|
if (sighup_received) {
|
||||||
sighup_received = FALSE;
|
sighup_received = FALSE;
|
||||||
|
|
||||||
if (settings_get_bool("quit_on_hup")) {
|
if (settings_get_bool("quit_on_hup")) {
|
||||||
signal_emit("gui exit", 0);
|
signal_emit("gui exit", 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
signal_emit("command reload", 1, "");
|
signal_emit("command reload", 1, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dirty_check();
|
dirty_check();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user