mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Removed redundant inline comments in the timer plugin that did not add useful context (plugin handle declaration and return value comment), keeping behavior unchanged.
Removed an obsolete visual alignment guide comment above the timer list header print call to clean up the function body.
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#define _(x) zoitechat_gettext(ph,x)
|
#define _(x) zoitechat_gettext(ph,x)
|
||||||
|
|
||||||
static zoitechat_plugin *ph; /* plugin handle */
|
static zoitechat_plugin *ph;
|
||||||
static GSList *timer_list = NULL;
|
static GSList *timer_list = NULL;
|
||||||
|
|
||||||
#define STATIC
|
#define STATIC
|
||||||
@@ -146,7 +146,6 @@ timer_showlist (void)
|
|||||||
zoitechat_print (ph, _(HELP));
|
zoitechat_print (ph, _(HELP));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* 00000 00000000 0000000 abc */
|
|
||||||
zoitechat_print (ph, _("\026 Ref# Seconds Repeat Command \026\n"));
|
zoitechat_print (ph, _("\026 Ref# Seconds Repeat Command \026\n"));
|
||||||
list = timer_list;
|
list = timer_list;
|
||||||
while (list)
|
while (list)
|
||||||
@@ -218,7 +217,6 @@ zoitechat_plugin_init
|
|||||||
(zoitechat_plugin *plugin_handle, char **plugin_name,
|
(zoitechat_plugin *plugin_handle, char **plugin_name,
|
||||||
char **plugin_desc, char **plugin_version, char *arg)
|
char **plugin_desc, char **plugin_version, char *arg)
|
||||||
{
|
{
|
||||||
/* we need to save this for use with any zoitechat_* functions */
|
|
||||||
ph = plugin_handle;
|
ph = plugin_handle;
|
||||||
|
|
||||||
*plugin_name = "Timer";
|
*plugin_name = "Timer";
|
||||||
@@ -227,5 +225,5 @@ zoitechat_plugin_init
|
|||||||
|
|
||||||
zoitechat_hook_command (ph, "TIMER", ZOITECHAT_PRI_NORM, timer_cb, _(HELP), 0);
|
zoitechat_hook_command (ph, "TIMER", ZOITECHAT_PRI_NORM, timer_cb, _(HELP), 0);
|
||||||
|
|
||||||
return 1; /* return 1 for success */
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user