org.guifications.plugins: d6adcf69f981f20bddcec18d1c1e363333920e43
rekkanoryo at guifications.org
rekkanoryo at guifications.org
Mon Mar 17 20:05:08 CDT 2008
-----------------------------------------------------------------
Revision: d6adcf69f981f20bddcec18d1c1e363333920e43
Ancestor: 209405345caa4f42e579ed04b37cd8d7f23be0d1
Author: rekkanoryo at guifications.org
Date: 2008-03-18T01:01:51
Branch: org.guifications.plugins
Modified files:
ChangeLog irc-more/irc-more.c
ChangeLog:
irc-more now only adds /notice when libpurple doesn't have it.
-----------------------------------------------------------------
This revision's diffstat output:
ChangeLog | 2 ++
irc-more/irc-more.c | 4 ++++
2 files changed, 6 insertions(+)
-------------- next part --------------
============================================================
--- ChangeLog e9538e4dba47a25be8941ba63b752d2295d1e485
+++ ChangeLog e97c0ca0739b0eb97b9ab8bbaeb8e26257c53a95
@@ -10,6 +10,8 @@ Version 2.3.0mtn:
(http://en.wikipedia.org/wiki/Dice_notation), but it's not perfect yet.
(Lucas Paul)
* Dice plugin now calls the /me command with its output.
+ * Irc-more plugin adds notice support only when built against libpurple
+ older than 2.4.0.
* Napster plugin now builds by default.
* Removed the broadcast plugin.
* Memory leak fixes
============================================================
--- irc-more/irc-more.c e3b3af122e1980010d29acf1afad17619d8a4b63
+++ irc-more/irc-more.c b6c4bd5926b7a9dcee56253dacda50580060270d
@@ -123,6 +123,7 @@ signed_on_cb(PurpleConnection *gc)
return;
}
+#if !PURPLE_VERSION_CHECK(2,4,0)
static PurpleCmdRet
notice_cmd_cb(PurpleConversation *conv, const gchar *cmd, gchar **args,
gchar **error, void *data)
@@ -172,6 +173,7 @@ notice_cmd_cb(PurpleConversation *conv,
return PURPLE_CMD_RET_OK;
}
+#endif
static void
irc_sending_text(PurpleConnection *gc, char **msg, gpointer null)
@@ -219,9 +221,11 @@ plugin_load(PurplePlugin *plugin)
/* specify our help string and register our command */
notice_help = _("notice target message: Send a notice to the specified target.");
+#if !PURPLE_VERSION_CHECK(2,4,0)
notice_cmd_id = purple_cmd_register("notice", "ws", PURPLE_CMD_P_PLUGIN,
PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_PRPL_ONLY,
"prpl-irc", notice_cmd_cb, notice_help, NULL);
+#endif
/* we need this handle for the signed-on signal */
gc_handle = purple_connections_get_handle();
More information about the Plugins-commits
mailing list