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 

On-Join message to mode +o users
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 7:30 pm    Post subject: Reply with quote

These users aren't set as +z inside the bot... +z is a server mode our server provides... so I guess you gave yerself a z flag inside bot?

So I see them come in like this:

[6:24pm] * Joins: xx (xx@xx)
[6:24pm] * xx sets mode: +z xx
only ops see users come in +z and bot has ops to see that.

flags.lst shows:
z #chan Test here.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 8:00 pm    Post subject: Reply with quote

script actually works when I give myself a +z flag .chattr me +z but this isn't what im trying to do since +z is a onjoin server mode.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Nov 12, 2006 8:30 pm    Post subject: Reply with quote

My guess is that eggdrop doesn't recognize the +z channel mode.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 8:35 pm    Post subject: Reply with quote

No way to make it read this [6:24pm] * xx sets mode: +z xx then make it send a msg?... when I'm in putty the bot sees it: [18:55] #chan: mode change '+z xx' by xx!xx@xx
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Sun Nov 12, 2006 8:50 pm    Post subject: Reply with quote

cache wrote:
These users aren't set as +z inside the bot... +z is a server mode our server provides... so I guess you gave yerself a z flag inside bot?


hmm and all this time I thought you meant the bot's flags.. In which case, no, that script won't help..Sorry
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 8:57 pm    Post subject: Reply with quote

rosc2112 wrote:
cache wrote:
These users aren't set as +z inside the bot... +z is a server mode our server provides... so I guess you gave yerself a z flag inside bot?


hmm and all this time I thought you meant the bot's flags.. In which case, no, that script won't help..Sorry


I don't have o flag via bot and yet it knows when I join room and +o myself as in server mode and sends me a msg but won't do anything when it sees me +z mode myself.
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Sun Nov 12, 2006 9:21 pm    Post subject: Reply with quote

As Sir_Fz said, it likely does not even recognize that channel mode. Search the forum for "hardcoded modes" and you'll find some threads about this problem.. Doesn't seem to be much of a solution for it except to hack on the eggdrop src or possibly grab the RAW msg from the server.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 9:35 pm    Post subject: Reply with quote

growl i hate hardcoded stuff, thanks for the help.
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Sun Nov 12, 2006 9:39 pm    Post subject: Reply with quote

my bot used to kick everyone who joined room with +z saying (abusing dsynx) till I added:

Code:
bind raw - MODE foo2
proc foo2 {f k t} {
   if {[lindex [split $t] 1] == "+z"} {return 1}
}


And that actually worked, but I removed it and started using +nodesynch
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Nov 13, 2006 7:33 pm    Post subject: Reply with quote

Try:
Code:
bind raw - MODE foo2

proc foo2 {f k t} {
 if {[lindex [split $t] 1] == "+z"} {
  set targ [lindex [split $t] 2]; set chan [lindex [split $t] 0]
  if {[unixtime] - [getchanjoin $targ $chan] <= 3} {
   puthelp "privmsg $targ :Hello $targ"
  }
  return 1
 }
 return 0
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 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