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.

tclirc.c bug?

General support and discussion of Eggdrop bots.
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

tclirc.c bug?

Post by debugbr »

Hello.

I have a big problem using eggdrop. I think the bug is on src/mod/irc.mod/tclirc.c (version 1.6.18). I was looking the file, trying to understand, but got nothing.

The eggdrop can't see if it's op, halfop, voice, banned, or anything else. I'm using a TCL that checks the current status and shows me, channel per channel, with their status. I always get "banned" for all them, ignoring if the bot is in or not the channel.
The bot joins all channels and works perfectly, but it can't change modes or do anything with channel.
The current opchars conf is "!@%" (+aoh), but if I +o the bot it'll won't work anyway. The functions [onchan] and [botisop] is the big problem. They always returns 0, without any reason.

The compilation is Okay, without any errors on channel and irc modules.
The system is a FreeBSD 4.10-release-p3.

This is a bug or a mismatch configuration?

Thank you and sorry my english. :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

This "bug" is probably that Tcl of yours.

Unload all custom Tcl scripts and then .restart the bot and see what happens.

Bloated networks that assign +a to the eggdrop will render any recognition of being opped useless.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

There's only one custom tcl loaded (Storm.tcl).

DCC Chat:
<kernel> *** DeBuG joined the party line.
<DeBuG> .voice
<kernel> Usage: voice <nick> [channel]
<DeBuG> .voice DeBuG #brasil
<kernel> I'm not on #brasil right now!
<DeBuG> .stat
<kernel> [15:51] #DeBuG# status
<kernel> I am kernel, running eggdrop v1.6.18: 2 users (mem: 84k).
<kernel> Online for 00:00 (background) - CPU: 00:00 - Cache hit: 6.7%
<kernel> Admin: DeBuG
<kernel> Config file: eggdrop.conf
<kernel> OS: FreeBSD 4.10-RELEASE-p3
<kernel> Tcl library: /usr/local/lib/tcl8.4
<kernel> Tcl version: 8.4.13 (header version 8.4.13)
<kernel> Loaded module information:
<kernel> Channels: #brasil (trying), #fenixro (trying)
<kernel> Online as: kernel!kernel@!¡!¡!KeRnEl.PaNiC!¡!¡! (Whois?)
<kernel> Server 208.98.8.15:6667 (connected for 00:00)
<kernel> #brasil : (pending), enforcing "+tn" (greet)
<kernel> #fenixro : (pending), enforcing "+tn" (greet)
Tcl bug uh? :?

Current scripts configuration:
##### SCRIPTS #####

# This is a good place to load scripts to use with your bot.

# This line loads script.tcl from the scripts directory inside your Eggdrop's
# directory. All scripts should be put there, although you can place them where
# you like as long as you can supply a fully qualified path to them.
#
# source scripts/script.tcl

source scripts/alltools.tcl
source scripts/action.fix.tcl

# Use this script for Tcl and Eggdrop backwards compatibility.
# NOTE: This can also cause problems with some newer scripts.
source scripts/compat.tcl

# This script provides many useful informational functions, like setting
# users' URLs, e-mail address, ICQ numbers, etc. You can modify it to add
# extra entries.
source scripts/userinfo.tcl
loadhelp userinfo.help

#source scripts/storm.tcl
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

.console #brasil 
The focus has to be on the channel where the command is to take effect.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

[nexus@edurx:~/eggdrop]$ ./eggdrop

Eggdrop v1.6.18 (C) 1997 Robey Pointer (C) 2006 Eggheads
[22:10] --- Loading eggdrop v1.6.18 (Tue Oct 17 2006)
[22:10] Module loaded: dns
[22:10] Module loaded: channels
[22:10] Module loaded: server
[22:10] Module loaded: ctcp
[22:10] Module loaded: irc
[22:10] Module loaded: notes (with lang support)
[22:10] Module loaded: console (with lang support)
[22:10] Module loaded: blowfish
[22:10] Module loaded: uptime
[22:10] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[22:10] use '.help userinfo' for commands.
[22:10] Userfile loaded, unpacking...
[22:10] === kernel: 2 channels, 2 users.
Launched into the background (pid: 64362)

[nexus@edurx:~/eggdrop]$
* Now talking in #brasil
* Topic is 'Seja bem vindo'
* DeBuG`off is now known as DeBuG
* Joins: kernel (kernel@!¡!¡!KeRnEl.PaNiC!¡!¡!)
* Brasil sets mode: +h kernel
Chat with kernel
Waiting for acknowledgement...
DCC Chat connection established
-
<kernel> Enter your password.
<DeBuG> (hidden ;x)
<kernel>
<kernel> Connected to kernel, running eggdrop v1.6.18
<kernel> ____ __
<kernel> / __/___ _ ___ _ ___/ /____ ___ ___
<kernel> / _/ / _ `// _ `// _ // __// _ \ / _ \
<kernel> /___/ \_, / \_, / \_,_//_/ \___// .__/
<kernel> /___/ /___/ /_/
<kernel>
<kernel> Hey DeBuG! My name is kernel and I am running eggdrop v1.6.18, on FreeBSD 4.10-RELEASE-p3.
<kernel>
<kernel> Local time is now 22:10
<kernel> You are an owner of this bot. Only +n users can see this! For more info,
<kernel> see .help set motd. Please edit the motd file in your bot's 'text'
<kernel> directory.
<kernel> Use .help for basic help.
<kernel> Use .help <command> for help on a specific command.
<kernel> Use .help all to get a full command list.
<kernel> Use .help *somestring* to list any help texts containing "somestring".
<kernel>
<kernel> Have fun.
<kernel>
<kernel> Commands start with '.' (like '.quit' or '.help')
<kernel> Everything else goes out to the party line.
<kernel>
<kernel> You have no messages.
<kernel> *** DeBuG joined the party line.
<DeBuG> .console #brasil
<kernel> [22:10] #DeBuG# console #brasil
<kernel> Set your console to #brasil: mkcobxs (msgs, kicks/modes, cmds, misc, bots, files, server).
<DeBuG> .voice
<kernel> Usage: voice <nick> [channel]
<DeBuG> .voice DeBuG
<kernel> I'm not on #brasil right now!
* DeBuG sets mode: +o-o kernel DeBuG
<kernel> [22:12] #brasil: mode change '+o-o kernel DeBuG' by DeBuG!l0ck@The.Gate.Keeper
<DeBuG> .voice DeBuG
<kernel> I'm not on #brasil right now!
So? :/
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Remove that script. :P

I have already tested this in 5 bots; guess what works 100%?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

What script? Storm.tcl? The line is has a # before.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

There was another post recently about +a modes causing problems for eggdrop cos it does not understand +a

http://forum.egghelp.org/viewtopic.php?t=12539
and
http://forum.egghelp.org/viewtopic.php?t=12453

There was also a discussion about how to modify the src to recognize these other non-standard modes, but I can't seem to find the thread at the moment.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

rosc2112 wrote:There was another post recently about +a modes causing problems for eggdrop cos it does not understand +a
I never thought about the possibility debugbr's user having a non-standard user mode set. :oops:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

I found the threads, do a search for "hardcoded modes" and you'll find them. There's also a very old post about patching the bot to add a new mode (looks way over my head at least..)
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

You can ignore the +a mode. I'm trying to control a eggdrop that is a channel operator (+o) on the channel, and i'm not chadmin, but choperator.
The +a mode always worked with me on eggdrops without any kind of problems.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Post the script.
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

Why I need to post the script? The script was unloaded now. I'm trying to op and deop using the eggdrop dcc chat, original system.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I just re-read the original post ( a little more closely):
The current opchars conf is "!@%" (+aoh)
From eggdrop.conf:
# Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.

set opchars "@"
#set opchars "@&~"
eggdrop is incapable of detecting if it is opped whenever one of those bloated IRCd's sets a non-standard user mode on it i.e. +a.

Remove the non-standard user mode from eggdrop and you should be ok.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
d
debugbr
Voice
Posts: 7
Joined: Thu Oct 12, 2006 1:29 pm

Post by debugbr »

Remove the non-standard user mode from eggdrop and you should be ok.
((??)) I'm sorry, but I didn't understand. How can I remove the non-standard mode if it's already removed?
set opchars "@"
On the post I said the old configuration, but the conf has only the @ (+o).
Post Reply