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.

On-Join message to mode +o users

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

My guess is that eggdrop doesn't recognize the +z channel mode.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

growl i hate hardcoded stuff, thanks for the help.
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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

Code: Select all

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try:

Code: Select all

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
}
Post Reply