in reply to getting client mode with Net::IRC

User mode changes will only be made by the client. Some valid user modes are invisible (i), receive server messages (s) and recieve wallops (w). How have you been testing it?

Replies are listed 'Best First'.
Re^2: getting client mode with Net::IRC
by agaffney (Beadle) on Dec 31, 2004 at 16:55 UTC
    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)?

      +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.