Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: ms_cowner shuts down anope  (Read 2077 times)

0 Members and 1 Guest are viewing this topic.

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 174
    • French Eggdrop community
ms_cowner shuts down anope
« on: August 09, 2007, 06:02:46 PM »

I've today reinstall ms_cowner on anope 1.7.19 and it don't works...
Quote
[Aug 09 14:49:29 2007] PANIC! buffer = :CrazyCat PRIVMSG memoserv :sendowner here is my message


btw, I don't have the message I may receive (notice(s_MemoServ, u->nick, "Memo to all channelfounders sent. [%d]", count);) but MemoServ say that I've a new message (I'm also chanowner)...

does anyone know if I've to modify this small module?

Here's the source:
Code: [Select]
#include "module.h"

#define AUTHOR "Keeper"
#define VERSION "1.0"

int ms_send_cowners(User * u);

extern NickCore *nclists[1024];
extern void memo_send(User * u, char *name, char *text, int z);

void AnopeInit(void)
{
    Command *c;
    c = createCommand("sendowners", ms_send_cowners, is_services_admin, -1,
                      -1, -1, -1, -1);
    alog("ms_cowner.so: Add Command 'sendowners' Status: %d",
         moduleAddCommand(MEMOSERV, c, MOD_HEAD));
    moduleAddAuthor(AUTHOR);
    moduleAddVersion(VERSION);
}

int ms_send_cowners(User * u)
{
    NickCore *nc;
    int i, count = 0;
    char *text = strtok(NULL, "");
    for (i = 0; i <= 1024; i++) {
        for (nc = nclists[i]; nc; nc = nc->next) {
            if (nc->channelcount > 0) {
                memo_send(u, nc->display, text, 1);
                count++;
            }
        }
    }
    notice(s_MemoServ, u->nick, "Memo to all channelfounders sent. [%d]",
           count);
    return MOD_STOP;
}


Thanks by advance

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #1 on: August 10, 2007, 08:48:42 AM »

I've recode the module and named it as ms_chanowner in order to prevent it from misconfusion. Though it's still pending for approval on the module site, you can use the attachment :)
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 174
    • French Eggdrop community
(No subject)
« Reply #2 on: August 10, 2007, 09:13:52 AM »

Wonderfull, it works really well.

Thanks a lot

katsklaw

  • Guest
(No subject)
« Reply #3 on: August 10, 2007, 11:50:26 PM »

Quote
Originally posted by n00bie
I've recode the module and named it as ms_chanowner in order to prevent it from misconfusion. Though it's still pending for approval on the module site, you can use the attachment :)


Approved.
Logged
Pages: [1]   Go Up