egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tclirc.c bug?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Thu Oct 12, 2006 1:37 pm    Post subject: tclirc.c bug? Reply with quote

Hello.

I have a big problem using eggdrop. I think the bug is on src/mod/irc.mod/tclirc.c (version 1.6.1Cool. 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. Smile
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Oct 12, 2006 7:35 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Fri Oct 13, 2006 11:54 am    Post subject: Reply with quote

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

DCC Chat:

Quote:

<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? Confused

Current scripts configuration:

Quote:

##### 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
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Oct 13, 2006 8:09 pm    Post subject: Reply with quote

Code:
.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
Back to top
View user's profile Send private message Visit poster's website
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Tue Oct 17, 2006 6:13 pm    Post subject: Reply with quote

Quote:

[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]$


Quote:

* 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


Quote:

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!

Quote:

* DeBuG sets mode: +o-o kernel DeBuG

Quote:

<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? :/
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Oct 17, 2006 7:04 pm    Post subject: Reply with quote

Remove that script. Razz

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
Back to top
View user's profile Send private message Visit poster's website
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Fri Oct 20, 2006 7:39 pm    Post subject: Reply with quote

What script? Storm.tcl? The line is has a # before.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Oct 21, 2006 4:38 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Oct 21, 2006 5:22 am    Post subject: Reply with quote

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. Embarassed
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Oct 21, 2006 5:31 am    Post subject: Reply with quote

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..)
Back to top
View user's profile Send private message
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Sat Oct 21, 2006 3:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Oct 22, 2006 5:01 am    Post subject: Reply with quote

Post the script.
Back to top
View user's profile Send private message
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Sun Oct 22, 2006 10:12 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Oct 22, 2006 10:39 pm    Post subject: Reply with quote

I just re-read the original post ( a little more closely):
Quote:
The current opchars conf is "!@%" (+aoh)


From eggdrop.conf:
Quote:
# 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
Back to top
View user's profile Send private message Visit poster's website
debugbr
Voice


Joined: 12 Oct 2006
Posts: 7

PostPosted: Mon Oct 23, 2006 6:39 pm    Post subject: Reply with quote

Quote:
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?

Quote:

set opchars "@"


On the post I said the old configuration, but the conf has only the @ (+o).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber