Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: error: too few arguments to function `createcommand'  (Read 6526 times)

0 Members and 1 Guest are viewing this topic.

TheShip

  • Anope User
  • Offline Offline
  • Posts: 4
error: too few arguments to function `createcommand'
« on: January 06, 2010, 08:45:58 AM »

hi all!

When I make a few modules provide anope-1.8.0  ex: ns_ajoin, os_massserv, ns_totaltime.c modules...,I have encountered the following error:

in function `anopeinit':
error: too few arguments to function `createcommand'

plz help me fix this error! thank alot

Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: error: too few arguments to function `createcommand'
« Reply #1 on: January 06, 2010, 11:17:06 AM »

you will have to paste the entire error so we can see which module is throwing it. I know for sure though that ns_ajoin will work nicely on any anope 1.8.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

TheShip

  • Anope User
  • Offline Offline
  • Posts: 4
Re: error: too few arguments to function `createcommand'
« Reply #2 on: January 06, 2010, 12:19:13 PM »

oh sorry

Here is the full error when i maked modules ns_ajoin

make[1]: Entering directory `/home/TheShip/anope-1.8.0/src'
gcc  -pipe -g -O2 -export-dynamic -fPIC -DPIC -shared -I../include/ -c mod_version.c
gcc -pipe -g -O2 -export-dynamic actions.o base64.o botserv.o channels.o chanserv.o commands.o compat.o config.o datafiles.o encrypt.o events.o helpserv.o hostserv.o init.o ircd.o language.o list.o log.o mail.o main.o memory.o memoserv.o messages.o misc.o modules.o news.o nickserv.o operserv.o process.o send.o servers.o sessions.o slist.o sockutil.o timeout.o users.o    -lnsl -lresolv  -ldl  -o services

make[1]: Leaving directory `/home/TheShip/anope-1.8.0/src'
(cd src/modules ; ./configure ; make 'CFLAGS=-pipe -g -O2 -export-dynamic' 'CC=gcc' 'ANOPELIBS=-lnsl -lresolv  -ldl' 'LDFLAGS=' 'BINDEST=/home/TheShip/services' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/TheShip/services' 'RUNGROUP=' 'MODULE_PATH=/home/TheShip/services/modules/' 'RDB=' 'MYSQL=' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' all; )
make[1]: Entering directory `/home/TheShip/anope-1.8.0/src/modules'
gcc -pipe -g -O2 -export-dynamic -rdynamic -Wall -fPIC -DPIC -shared -I../../include -c ns_ajoin.c

ns_ajoin.c: In function `AnopeInit':
ns_ajoin.c:436: error: too few arguments to function `createCommand'
ns_ajoin.c:446: error: too few arguments to function `createCommand'
ns_ajoin.c:452: error: too few arguments to function `createCommand'
ns_ajoin.c:458: error: too few arguments to function `createCommand'
ns_ajoin.c:466: error: too few arguments to function `createCommand'
ns_ajoin.c:472: error: too few arguments to function `createCommand'
ns_ajoin.c:479: error: too few arguments to function `createCommand'
make[1]: *** [ns_ajoin.o] Error 1
make[1]: Leaving directory `/home/TheShip/anope-1.8.0/src/modules'
make: *** [modules] Error 2


Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: error: too few arguments to function `createcommand'
« Reply #3 on: January 06, 2010, 12:38:12 PM »

what version of ns_ajoin is this  ???
Verify you are using the latest version available from the modules site.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

TheShip

  • Anope User
  • Offline Offline
  • Posts: 4
Re: error: too few arguments to function `createcommand'
« Reply #4 on: January 06, 2010, 12:49:02 PM »

  *Name    : ns_ajoin
 * Author  : Viper  <Viper@Anope.org>
 * Date    : 23/10/2006  (Last update: 02/12/2009)
 * Version : 4.2.2

I downloaded from  http://modules.anope.org/index.php?page=view&id=73



Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: error: too few arguments to function `createcommand'
« Reply #5 on: January 06, 2010, 01:18:13 PM »

compiles nicely for just about everyone so far.. try redownloading the src code.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up