-
Notifications
You must be signed in to change notification settings - Fork 1
Add option to hide the "playback" message #13
Conversation
Thanks for your contribution. I think that should be a plugin preference rather than a account preference, though (see e.g. the offlinemsg plugin). |
src/znchelper.c
Outdated
@@ -98,6 +98,7 @@ static void znc_write_chat( | |||
PurpleConversation *conv, const char *who, const char *message, | |||
PurpleMessageFlags flags, time_t mtime | |||
) { | |||
PurpleConnection *gc = purple_conversation_get_gc(conv); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please don't mix up declarations and code and make sure to check the return values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix that right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit added to fix this
I actually agree with you, but I was only using the code I had (this plugin) to formulate the code. I'm not very well versed in C. I can do Java, Python, PHP, and more all day, but C and friends are not a strong suit for me. I'll look into fixing that. |
Heavy handed Ctrl-C work done from offlinemsg.c
All discussed changes have been made. Commits are ready for re-review. |
src/znchelper.c
Outdated
@@ -37,6 +37,8 @@ static gboolean core_quitting = FALSE; | |||
#define ZNC_CONV_STATE_START 0 | |||
#define ZNC_CONV_STATE_REPLAY 1 | |||
#define ZNC_CONV_STATE_DONE 2 | |||
#define PREF_PREFIX "/plugins/core/znc-helper" | |||
#define PREF_HIDEMSG PREF_PREFIX "/hidemsg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Tab should be a space.
src/znchelper.c
Outdated
@@ -102,7 +104,7 @@ static void znc_write_chat( | |||
struct znc_conn *znc; | |||
GList *parted, *l; | |||
gint state; | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove whitespace
src/znchelper.c
Outdated
@@ -463,6 +469,7 @@ static gboolean plugin_load(PurplePlugin *plugin) { | |||
_("Uses ZNC bouncer"), "uses_znc_bouncer", FALSE | |||
); | |||
irc_info->protocol_options = g_list_append(irc_info->protocol_options, option); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove newline
src/znchelper.c
Outdated
PurplePluginPref *pref; | ||
|
||
frame = purple_plugin_pref_frame_new(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tab
LGTM apart from a few whitespace issues. |
Thank you. |
PR that implements #12