mIRC Home    About    Download    Register    News    Help

Topic Options
#226310 - 26/09/10 10:05 AM "Unknown MODE flag" error w/ hybrid-7.3.0rc1
DeeBG Offline
Mostly harmless

Registered: 26/09/10
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

Top
#226312 - 26/09/10 11:02 AM Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: DeeBG]
Khaled Offline


Planetary brain

Registered: 04/12/02
Posts: 4379
Loc: London, UK
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.

Top
#226496 - 03/10/10 10:28 AM Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: Khaled]
Thels Offline
Vogon poet

Registered: 14/08/10
Posts: 134
Loc: Haarlem, The Netherlands
You could just take off invisible mode and add "/mode $me +i" to your perform for all other networks.
_________________________
Learning something new every day.

Top
#226599 - 08/10/10 03:36 PM Re: "Unknown MODE flag" error w/ hybrid-7.3.0rc1 [Re: DeeBG]
Sephiroth_ Offline
Fjord artisan

Registered: 26/10/03
Posts: 213
Loc: Germany, Arnstadt
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

Top