| View previous topic :: View next topic |
| Author |
Message |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Thu Oct 12, 2006 1:37 pm Post subject: tclirc.c bug? |
|
|
Hello.
I have a big problem using eggdrop. I think the bug is on src/mod/irc.mod/tclirc.c (version 1.6.1 . 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.  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Oct 12, 2006 7:35 pm Post subject: |
|
|
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 |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Fri Oct 13, 2006 11:54 am Post subject: |
|
|
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?
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Oct 13, 2006 8:09 pm Post subject: |
|
|
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 |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Tue Oct 17, 2006 6:13 pm Post subject: |
|
|
| 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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Oct 17, 2006 7:04 pm Post subject: |
|
|
Remove that script.
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 |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Fri Oct 20, 2006 7:39 pm Post subject: |
|
|
| What script? Storm.tcl? The line is has a # before. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Oct 21, 2006 5:22 am Post subject: |
|
|
| 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.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Oct 21, 2006 5:31 am Post subject: |
|
|
| 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 |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Sat Oct 21, 2006 3:55 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Oct 22, 2006 5:01 am Post subject: |
|
|
| Post the script. |
|
| Back to top |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Sun Oct 22, 2006 10:12 pm Post subject: |
|
|
| 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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Oct 22, 2006 10:39 pm Post subject: |
|
|
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 |
|
 |
debugbr Voice
Joined: 12 Oct 2006 Posts: 7
|
Posted: Mon Oct 23, 2006 6:39 pm Post subject: |
|
|
| 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?
On the post I said the old configuration, but the conf has only the @ (+o). |
|
| Back to top |
|
 |
|