grim/purple-plugin-pack

Missed some additional code that dealt with the new year easter egg
draft remove-irssi-easter-egg
2020-07-14, Gary Kramlich
3f58ec872683
Parents 7b1d4ef6ce05
Children
Missed some additional code that dealt with the new year easter egg
--- a/irssi/datechange.c Tue Jul 14 03:56:02 2020 -0500
+++ b/irssi/datechange.c Tue Jul 14 03:58:43 2020 -0500
@@ -67,7 +67,7 @@
GList *l = NULL;
gint day = 0, month = 0;
gchar buff[80];
- gchar *message = NULL, *new_year = NULL;
+ gchar *message = NULL;
if(!irssi_datechange_get_day_and_month(&t, &day, &month))
return TRUE;
@@ -90,24 +90,9 @@
purple_conversation_write(conv, NULL, message,
PURPLE_MESSAGE_NO_LOG | PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_ACTIVE_ONLY,
t);
-
- if(new_year) {
- switch (purple_conversation_get_type(conv))
- {
- case PURPLE_CONV_TYPE_IM:
- purple_conv_im_send(PURPLE_CONV_IM(conv), new_year);
- break;
- case PURPLE_CONV_TYPE_CHAT:
- purple_conv_chat_send(PURPLE_CONV_CHAT(conv), new_year);
- break;
- default:
- break;
- }
- }
}
g_free(message);
- g_free(new_year);
return TRUE;
}