mIRC Home    About    Download    Register    News    Help

Print Thread
"Unknown MODE flag" error w/ hybrid-7.3.0rc1 #226310 26/09/10 09:05 AM
Joined: Sep 2010
Posts: 1
D
DeeBG Offline OP
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Sep 2010
Posts: 1
Hi all. This really isn't an error per se, however the vast majority of users have invisible mode (+i) set. However with this version of hybrid (and possibly others), +i is automatically set for the users by default (I'm sure this can be changed in the ircd settings, but please bare with me =p). Because of this, if you have "invisible mode" selected (as it is by default), you will receive an "Unknown MODE flag" when connecting to the server.

Is there anyway to change mIRC's behavior to adapt to this, or is it just something for the ircops to decide?

Thanks! - DeeBG

Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: DeeBG] #226312 26/09/10 10:02 AM
Joined: Dec 2002
Posts: 4,934
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,934
This could be tricky since an IRC client would need to know that the mode has already been set in order not to set it. As far as I am aware, there is no way for an IRC client to know this, unless the new IRC server is including this information in numeric 005 with a new token.

Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: Khaled] #226496 03/10/10 09:28 AM
Joined: Aug 2010
Posts: 134
T
Thels Offline
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
You could just take off invisible mode and add "/mode $me +i" to your perform for all other networks.


Learning something new every day.
Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: DeeBG] #226599 08/10/10 02:36 PM
Joined: Oct 2003
Posts: 214
S
Sephiroth_ Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
It could simply be fixed with a small script and +i in options dialog turned off

Code:
on *:connect:{
  ; set a tempvar for the raw event that it only triggers if its set
  set %checkmode $+ $cid $true
  ; request all modes set on you
  mode $me
}
raw 221:*:{
  ;if its set -> continue
  if (%checkmode [ $+ [ $cid ] ]) {
    ; remove it since its no longer needed
    unset %checkmode $+ $cid
    ; halt the output
    haltdef
    ; check if i(nvisible) is now in usermode - if not set it
    if (i !isincs $usermode) { mode $me +i }
  }
}
; remove the old vars that may be left from the last time
on *:start:{ unset %checkmode* }


Note: It won't work if the server is hiding the +i flag too.


one step closer to world domination