Hello,

I'm trying to find documentation and/or examples of irssi modules. The only
examples I can find seem to be too large and complex. As it stands I'm
trying to at least get a basic test module to load in irssi without sucess.
I get the following error every time I try to load it:

10:38 -!- Irssi: test/test isn't Irssi module

The test.c file contains only the following:

#include "common.h"
#include "printtext.h"
#include "levels.h"
#include "modules.h"

#define MODULE_NAME "test"

void test_init()
{
  module_register(MODULE_NAME, "core");

  printtext_string(NULL, NULL, MSGLEVEL_CLIENTCRAP, "init");

}

void test_deinit()
{
  printtext_string(NULL, NULL, MSGLEVEL_CLIENTCRAP, "test");
}

And is compiled with the following commands:

gcc -fPIC -Wall -g -DHAVE_CONFIG_H -c test.c
gcc -fPIC -Wall -g -DHAVE_CONFIG_H -avoid_version -module -shared test.o -o
libtest.so

The include paths have been removed for clarity.

Thanks,
Troy

Reply via email to