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.

Mode +u on quakenet

Old posts that have not been replied to for several years.
Locked
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Mode +u on quakenet

Post by Fluxism »

Hi all,

Does anyone know how to make an egg enforce +u on quakenet? (mode +u hides quit messages when ppl err.. quit).

At the moment, it is not possible as far as I can see...

Thanks,


Flux.
User avatar
kazoo
Halfop
Posts: 48
Joined: Wed Jun 18, 2003 7:26 pm
Location: Nashville, TN
Contact:

Post by kazoo »

That sounds like a server mode.. It doesn't seem like a channel op mode..
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Tis channel specific

/mode #egg +u

Or am I missing the point of what you said?
User avatar
kazoo
Halfop
Posts: 48
Joined: Wed Jun 18, 2003 7:26 pm
Location: Nashville, TN
Contact:

Post by kazoo »

It sounds like a mode that a channel service would set that is not able to be done simply by /mode #channel +u maybe not..
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Add it to the init-server modes (check the .conf)

(It has to be a user mode since quits don't occur on channel level :P)
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

Mode +u is a channelmode on quakenet, which prevents Quits/parts to be shown on the SPECIFIC channel ;)

Try something like this:

Code: Select all

bind mode *-u* domode
bind time - "?0 * * * *" domode
bind time - "?5 * * * *" domode

proc domode {nick host hand chan mode victim} {
  set chanmode [getchanmode $chan] 
  if {[string first u $chanmode] == -1} {
      pushmode $chan +u
  }
  else { return 0 }
}
This would (hopefully) check every 5 minutes if the mode is set, and set it, if not. It will also trigger when the mode is removed.
Someone will probably come with a better solution soon, since i think my use of timers and such is kinda odd ;)

I thought i might give helping a try too :)
The best way to start learning is to start helping.
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Thanks for the replies, I shall give it a go :)
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

If it doesn't work (I think you'll get errors when the time binds are 'triggered'), try replacing this:

Code: Select all

proc domode {nick host hand chan mode victim} { 
with this:

Code: Select all

proc domode {nick host hand chan mode args} { 
:)
Webmaster, MD87.co.uk
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

how would that make a difference? :)

it could be proc domode {i love to make up things } for that matter, as long as you call the same variables as mentioned in the process.

..or am i wrong now?
The best way to start learning is to start helping.
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

no you are not wrong AsoAron. you can call the variables whatever( how many variables there are does matter tho of course), mind you it helps to call them something that makes sense .:P
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Where the heck you've seen "nick host hand chan mode victim" in the proc of time? And even the "nick host hand chan mode args"? Go read the tcl-commands.doc file..
Once the game is over, the king and the pawn go back in the same box.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

AsoAron wrote:Mode +u is a channelmode on quakenet, which prevents Quits/parts to be shown on the SPECIFIC channel ;)
If you want to see someone's quit message and they happen to be in that same +u channel as you they/you will have to part for you to see it?

What a stupid hack..it should be a user mode or not exist at all imo.

What's next? The incredible channel mode "B" that makes you go entirely blind when joining a channel where it's set? :P
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

ah sorry ceasar, that was just sloppy.
I made it for the trigger first, and just added the binds for the timers.
The best way to start learning is to start helping.
User avatar
kazoo
Halfop
Posts: 48
Joined: Wed Jun 18, 2003 7:26 pm
Location: Nashville, TN
Contact:

Post by kazoo »

hehehe
Locked