in reply to Re: getting client mode with Net::IRC
in thread getting client mode with Net::IRC

Since I haven't written a command for mode changes, I put in the following at the top of my handler for channel text.
$conn->mode($mynick, "+i"); $conn->mode($mynick, "-i");
I also tried:
$conn->mode($channel, "+i", $mynick); $conn->mode($channel, "-i", $mynick);
My on_umode handler never gets called. The docs aren't too clear on how to do user mode changes instead of channel mode changes. If user mode changes can only be made by the client, how do I know when someone else changes my mode (+o, for example)?

Replies are listed 'Best First'.
Re^3: getting client mode with Net::IRC
by Mr. Muskrat (Canon) on Dec 31, 2004 at 16:59 UTC

    +o is not a user mode change but it is a mode change that triggers the mode handler if you have one.

      Ah, ok. The docs made it seems like the 'mode' handler was only for channel mode changes. Using 'mode' instead of 'umode' does exactly what I want it to do. Thanks.