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.

pushmode only works for 1 mode

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

pushmode only works for 1 mode

Post by Sir_Fz »

I usually like to use pushmode for removing modes rather than * "MODE.."
but if i use pushmode $chan +mR for example it only sets +m, so is there to make it set any modes with pushmode ?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

pushmode twice
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

well i have set modes
like for example set modes "mR"
[snip]
pushmode $chan -$::modes (only sets mode -m)

isn't there a way for it or should I use putserv.. :(
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

pushmode is for queueing a single mode at a time...
(read tcl-commands.doc)

Upon completion of a procedure, the pushmode queue will be emptied...
Thus.. all you need to do, as stated, is use multiple pushmode statements..
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Asnoted in the last post.

At the end of the procedure, and however many pushmodes, eggdrop will reconsturct them down to as simpler form as possible. ie, the -mR that you wanted.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

yes ur right, the pushmode tries to simplify all modes in once mode change, ok thanx I'll add multiple pushmode lines :)
Locked