This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 17 matches

by serra
Thu Sep 04, 2003 7:57 pm
Forum: Archive
Topic: new module
Replies: 5
Views: 2391

I've made banpub.tcl but i don't realy like TCL programming so i decided do write it in C. basicaly it is a anti-pub. If someone says #bla the bot kicks him if #bla is not on the allowed list. I don't expect this module to be useful to many people, but for me it is. I also think it may be one more e...
by serra
Wed Sep 03, 2003 1:51 pm
Forum: Archive
Topic: new module
Replies: 5
Views: 2391

sorry, the link was broken and i didn't notice.
I think its ok now. :)

pedro
by serra
Wed Sep 03, 2003 9:44 am
Forum: Archive
Topic: new module
Replies: 5
Views: 2391

new module

Hi,
I've finished the first version of my first module: banpub.mod
This beta version is available for download at http://mega.ist.utl.pt/~pcbs/banpub/

I didn't spent much time testing it but I thing it's OK, however I’ll be happy to receive critics and suggestions.

Thanks
Pedro
by serra
Mon Jul 28, 2003 8:35 pm
Forum: Archive
Topic: H_notc arguments
Replies: 3
Views: 1868

H_notc arguments

Hi, I'm working with H_notc builtin and i'm getting this error when the function is called: [01:29] Tcl error [*notc:*]: wrong # args: should be "*notc:* nick user@host handle desto/chan keyword/nick text" at this time the code is: static int notc_test (char *nick, char *uhost, struct user...
by serra
Mon Jul 28, 2003 8:27 pm
Forum: Archive
Topic: Segmentation fault, the typical problem :)
Replies: 1
Views: 838

whatever, the problem is solved.
thanks
by serra
Sat Jul 19, 2003 7:42 pm
Forum: Archive
Topic: Segmentation fault, the typical problem :)
Replies: 1
Views: 838

Segmentation fault, the typical problem :)

Hi there! Please can you tell me what do I need to be aware to use funcions like quickban and get_user_by_nick ? I have already made the correct dependences of irc.mod, server.mod and channels.mod and all that stuff, but when the bot runs the function that contains those other functions it gets a se...
by serra
Sat Mar 15, 2003 12:40 pm
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

user entry

Well, i've been looking deep in module.h, and I did realy found some usefull funcions. However i havent found how do I get a user entry (struct userrec *) by a string containig the nick, or how to get the handle by the nick like in TCL (nick2hand). i've found function get_user_by_nick(char *nick); i...
by serra
Mon Mar 03, 2003 8:06 am
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

oh!, by the way. Im using a raw binding, and i had to split args to get access to each word of the string. I searched, in eggdrop sources, for something like split() that seemed to TCL split funcion, but with no results. So i've made it myself but now i know i should have used strtok() to get it sim...
by serra
Mon Mar 03, 2003 7:51 am
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

Neverming, i think i got it! static int isop(char *nick, struct chanset_t *chan) { memberlist *m; return ((m = ismember(chan, nick)) && (chan_hasop(m))); } static int isvoice(char *nick, struct chanset_t *chan) { memberlist *m; return ((m = ismember(chan, nick) ) && (chan_hasvoice(m)...
by serra
Mon Mar 03, 2003 7:42 am
Forum: Archive
Topic: Public trigger
Replies: 8
Views: 1547

ppslim, yes. I think you're right!

The hard think about module programming is to get started, and woobie doesn't help much.
by serra
Fri Feb 28, 2003 10:14 pm
Forum: Archive
Topic: Looking for a special word ban/kick script
Replies: 5
Views: 977

hi, so.. why don't you try coding it yourself? there's a lot of ways to do that i woud suggest two: One is using files or some sql db to store the words and the message for each word. Then, add a bind pubm - * in your tcl and wile reading "word" from the file, check if the argument matches...
by serra
Fri Feb 28, 2003 9:28 pm
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

Hello! So.. now that the module is running, i wonder how can i find functions like isop, isvoice, matchattr, userlist etc That are implemented in TCL scripts? I've searched in a couple of modules but I think in general the modules available dont need to use this to reach the objective. Thanks for he...
by serra
Fri Feb 28, 2003 9:18 pm
Forum: Archive
Topic: Help searched for programming a new modul (rewrite from tcl)
Replies: 1
Views: 564

HI,

I think reading this:
http://forum.egghelp.org/viewtopic.php?t=2054
and
http://forum.egghelp.org/viewtopic.php?t=3768

may be a good start, at least i hope so :)

pedro
by serra
Thu Feb 27, 2003 2:25 pm
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

Oh yeah! It worked! Thanks! :D
Pedro
by serra
Wed Feb 26, 2003 6:31 pm
Forum: Archive
Topic: module programming - step 2
Replies: 23
Views: 9612

this message was suppost to be in "public trigger" topic! sorry :p

pedro