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.

adding a udef-channelflag to global-chanset

Old posts that have not been replied to for several years.
Locked
W
Win a 2

adding a udef-channelflag to global-chanset

Post by Win a 2 »

hi,

i want to add a userdefined channelflag to the global-chanset.
(+nopubseens from gseen.mod).

however, i don't get it working.
just putting '+nopubseens' into it in the eggdrop.conf doesn't work.
any ideas? (except of rewriting the src of the eggy or the mod in any ways)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

In the latest (dev) release of gseen you'll find the following in gseen.conf:

Code: Select all

######
#####
###   outdated settings (only important for eggdropv1.4 users)
#####
######

# channels where you do not want your bot to reply to public queries
set no-pub-seens ""

# channels where you want your bot to send replies via notice to the user and
# not to the channel
set quiet-seens ""

# same as quiet-seens but for AI seen
set quiet-ai-seens ""

# channels where you do not want your bot to log seen data
set no-seendata ""
I have discovered that they are far from "outdated" and if set all works just fine. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
W
Win a 2

Post by Win a 2 »

Code: Select all

# channels where you do not want your bot to reply to public queries
set no-pub-seens "" 
shout i set this to "*"?
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

### outdated settings (only important for eggdropv1.4 users)
Better try .chanset #channel +nopubseens (this should work on 1.6.x)
Que?
W
Win a 2

Post by Win a 2 »

sure, but i want it set by default. for every new channel i add :\
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

KrzychuG: It doesn't! That is why I made my original post. It's flawed.
shout i set this to "*"?
Add each channel that you do not want to use the "!seen" trigger in ie. set no-pub-seens "#chan1 #chan2 #chan3"

The same applies for the "no-seendata" setting ie. prevents the bot from storing data for channels where you do not wish the module to work in.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Try this:

Code: Select all

# channels where you do not want your bot to reply to public queries 
set no-pub-seens "[channels]"
Que?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

just putting '+nopubseens' into it in the eggdrop.conf doesn't work.
Nope, that will never work.

If you have a knowledge of C you can edit gseen.c & gseencmds.c.

gseen.c

Code: Select all

#if EGG_IS_MIN_VER(10503)
  initudef(1, "noseendata", 1);
  initudef(1, "quietseens", 1);
  initudef(1, "quietaiseens", 1);
  initudef(1, "nopubseens", 1);
#endif
gseencmds.c:

Code: Select all

static int nopub(char *chan)
{
  char buf[121], *b;

  Context;
  strncpy(buf, no_pub, 120);
  buf[120] = 0;
  b = buf;
  while (b[0])
    if (!strcasecmp(chan, newsplit(&b)))
      return 1;
#if EGG_IS_MIN_VER(10503)
  if (ngetudef("nopubseens", chan))
    return 1;
#endif
  return 0;
}
A suggestion would be to contact the author at gseen.mod@visions-of-fantasy.de with your suggestion. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
W
Win a 2

Post by Win a 2 »

i don't know C.
and gquann stopped scripting :(
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I was unaware that the author had ceased development of gseen.

Well, another way would be to write a tcl script which, when a channel is added to the bots' chanfile, could set the various options on.

Code: Select all

channel set $chan +quietseens
channel set $chan -quietaiseens
The +/-nopubseens & +/-noseendata being set in gseen.conf.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked