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 

Flags Issue (Weird problem, need help)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Mon Jan 14, 2013 2:37 pm    Post subject: Flags Issue (Weird problem, need help) Reply with quote

I've got a sick bot. Out of nowhere it's developped some sort of flagitus or something. simply put, any script that is flag dependant has gone haywire.

They >ALL< work on the owner nick (Mabus), but they refuse to work on any other nickname, no matter what the flags used are. It gets worse....

If I add a new user, say Mabus1 for example, and give it full ownerflags, it >STILL< doesn't work.

Here's an example of what i'm talking about. Bear in mind this was working perfectly before so it's not a coding problem with the script, and the problem is across all the scripts all of which used to work before this happened out of nowhere.

bind pub o|o ${quotesbot(trigger)}addquote quotebot:addpub

[in console]

<(Debates> HANDLE PASS NOTES FLAGS LAST
<(Debates> mabus1 no 0 fhjlmnoptx never (nowhere)<(Debates> #Debates flo never

Note, Mabus1 has full flags globally and the o flag for the channel. I've tried changing the flags in the script from o|o to other variations like -|o, o|- and o

The script works PERFECTLY if i set the flag to -
So the script works fine, it's just the flags that don't work.

I've tried recompiling the bot, i've tried different versions of eggdrop, i've tried deleting the userfile and using an old one I know works, I've tried a brand new user file using eggdrop -m but nothing seems to fix this. It's not just one script either, the problem seems to be occuring across the board in every script that requires flags. I've pretty much exhausted every idea I can think of here.... any help would be greatly appreciated.
_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Fri Jan 18, 2013 10:17 pm    Post subject: Reply with quote

Can i see a script that is causing this kind of troubles?
I would test that on one of my eggdrops.
It could be one of the other scripts you may loaded into the eggdrop.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sun Jan 20, 2013 12:57 pm    Post subject: Reply with quote

Have you tryed unload all the tcl scripts and then load one by one and see if it works? It could be only 1 script that is causing this to all others.
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 1:01 pm    Post subject: Reply with quote

I deleted the script i just posted because it was showing with smiley faces and such from the forum. Was about to upload something else for you to try when I saw you VERY QUICKLY replied, sorry about that Smile

Yeah The last thing I tried a few days ago, was to create a brand new bot folder, and install the eggdrop fresh, and then upload >ONE< script (the one I uploaded and removed a couple minutes ago). Still nothing.

The sick thing is, this was on a totally different shell (different company entirely). I'm seriously running out of ideas.

A bit more background here.....

>ALL< the scripts were working fine, when the shell i was using was bought by another company. They migrated all the files over to their own shell. The problem began at that point. The scripts did not change, they simply stopped working on the new shell.

I have since tried doing a fresh install on yet another shell (which I use for my bnc's normally). The bot works fine, but again, the flags are messed up. The flags work for me, alone, and no one else. Same exact issue, different shell (3rd now).
_________________
http://www.dalnetdebates.com/


Last edited by Mabus4444 on Sun Jan 20, 2013 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sun Jan 20, 2013 1:03 pm    Post subject: Reply with quote

Well its very weird i mean.. i never encoutered such problems i can only say join quakenet and i will make you a test shell account and install a eggdrop and i will see how you configure the eggdrop maybe i will figure out this way what is the problem
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 1:04 pm    Post subject: Reply with quote

I;d appreciate that! I've been running eggdrops since the mid 90's or so, and i've never seen anything like this.

Here's an example of a short script that is having this problem. I can op myself with this, other users can't.
Code:

# Op someone in the channel
# Usage: !op <nick>
proc pub:op {nick uhost hand chan args} {
   
   set args [split [cleanarg $args]]
   if {[llength $args] == 0 && ([matchattr $hand n] || [matchattr $hand "|n" $chan] || [matchattr $hand o $chan] || [matchattr $hand "|o" $chan])} {
      putserv "MODE $chan +o $nick"
   }
   if {[llength $args]<1} {
      notice $nick "Usage: !op <nick>"
      return 0
   }
   set who [lindex $args 0]
   if {$hand == "*"} {return 0}
   if {([isop $hand $chan]) || ([matchattr $hand "|o" $chan]) || ([matchattr $hand "o"])} {
      putserv "MODE $chan +o $who"
      putcmdlog "<<$nick>> !$hand! op $chan $who"
   } else {
      notice $nick "You can't do that!"
   }
}

_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 4:10 pm    Post subject: Reply with quote

Just to be clear... this is not a script problem.... It's something else to do with the eggdrop....

As I said earlier;

This is affecting the handling of the flags on multiple scripts. All of them were working fine until the shell i was one was bought by a new company and migrated the accounts over. Since then, since that moment, all the scripts are having the exact same problem. That is to say;

If I type <Mabus> !op
the bot will op me

If I have the nick <Mabus2> and type !op
the bot will not op me

The global flags of the two are identical
The channel flags are identical
I have tried fresh eggdrop installs
I have tried ./eggdrop -m

Would appreciate any help.
_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sun Jan 20, 2013 4:11 pm    Post subject: Reply with quote

Instead of $hand try [nick2hand $nick]
_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Jan 20, 2013 4:41 pm    Post subject: Reply with quote

A few issues I see with the script:
  • Don't use "args" as a parameter name, it's handled in a special manner in tcl, and accepts 0 or more arguments (placing them in a list). There are some cases where this might be desirable; though most certainly not in this case.
  • Consider using pushmode instead of putserv when setting channel modes. This helps your eggdrop optimizing mode settings.
  • isop needs a nickname, not a handle. It checks whether the nickname has channel operator status in the channel.

Other than that, have you verified that your users are properly recognized (use the .channels dcc-partyline command). The exerpt from the userfile listing you posted earlier would indicate that your eggdrop does not recognize mabus1 properly, as this user has never been seen by your eggdrop.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 4:49 pm    Post subject: Reply with quote

As far as the script is concerned, most of these are scripts which i downloaded from the egghelp file depository, most of them scripts i have been using for many years, which all suddenly stopped working well on the exact same day, the same day the shell changed. So It's not a script problem.

As for not identifying users properly, thats interesting. There may indeed be something going on there.
_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 4:51 pm    Post subject: Reply with quote

Doing a quick test.....

I am finding that users with the Never on the last seen.... are not able to use the flag scripts. Users with info on the last seen >ARE< able to use it.

Whatever is causing this is related to the LAST SEEN thing.

Now how do we fix that Smile
_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Jan 20, 2013 4:53 pm    Post subject: Reply with quote

Step 1, check users' hostmasks...
Step 2, add/remove/update hostmasks to properly identify the users in the channel...
Step 3, use .channels once again to verify that your eggdrop now recognizes them...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sun Jan 20, 2013 4:54 pm    Post subject: Reply with quote

Is tested and it works

Code:

# Op someone in the channel
# Usage: !op <nick>

bind pub - !op pub:op
proc pub:op {nick uhost hand chan arg} {

   set who [lindex [split $arg] 0]

   if {$who == ""} {
      if {[matchattr $hand n] || [matchattr $hand o $chan]} {
         if {[isop $nick $chan]} {
            putserv "PRIVMSG $chan :\002$nick\002 - You are already @ here"
            return
         } else {
            pushmode $chan +o $nick
         }
      }
   } else {
      if {[isop $who $chan]} { putserv "PRIVMSG $chan :\002$nick\002 - \00304$who\003 is already @ here"; return }
      if {[matchattr $hand n] || [matchattr $hand o $chan]} {
         pushmode $chan +o $who
      }
   }
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 9:21 pm    Post subject: Reply with quote

Confirmed, this is in fact the problem. The bot does not recognize newly added users to the last seen thing. Anyone have any ideas on how this might be fixed?
_________________
http://www.dalnetdebates.com/
Back to top
View user's profile Send private message
Mabus4444
Halfop


Joined: 30 Oct 2006
Posts: 51

PostPosted: Sun Jan 20, 2013 9:26 pm    Post subject: Reply with quote

nml375 wrote:
Step 1, check users' hostmasks...
Step 2, add/remove/update hostmasks to properly identify the users in the channel...
Step 3, use .channels once again to verify that your eggdrop now recognizes them...


I have a fresh clean empty userlist with just mabus in it
I added mabus2 with the proper flags
I typed .channels and got a "what you need help?" error.. was this the right command?

I also removed the channel entirely by typing .-chan #debates
and then readded it, but that did not resolve the problem.... mabus2 being re-added is still not "seen" in the console using the .match command
_________________
http://www.dalnetdebates.com/
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 -> Scripting 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