Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/VibeDevelopers/atheme-contrib-modules.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#include "atheme-compat.h"
static voidos_cmd_tabletest(sourceinfo_t *si, int parc, char *parv[]){ table_t *t = table_new("Table \2test\2"); table_row_t *r = table_row_new(t);
table_cell_associate(r, "foo", "bar"); table_cell_associate(r, "F", "-"); table_cell_associate(r, "baz", "splork");
r = table_row_new(t);
table_cell_associate(r, "foo", "1"); table_cell_associate(r, "F", "+"); table_cell_associate(r, "baz", "2");
r = table_row_new(t);
table_cell_associate(r, "foo", "beagle4"); table_cell_associate(r, "F", "+"); table_cell_associate(r, "baz", "boo");
command_success_table(si, t);
atheme_object_unref(t);}
static command_t os_tabletest = { .name = "TABLETEST", .desc = N_("Table test."), .access = AC_NONE, .maxparc = 0, .cmd = &os_cmd_tabletest, .help = { .path = "" },};
static voidmod_init(module_t *const restrict m){ service_named_bind_command("operserv", &os_tabletest);}
static voidmod_deinit(const module_unload_intent_t intent){ service_named_unbind_command("operserv", &os_tabletest);}
SIMPLE_DECLARE_MODULE_V1("contrib/os_tabletest", MODULE_UNLOAD_CAPABILITY_OK)