mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Dec 2002
Posts: 5,412
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,412
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.

Joined: Aug 2010
Posts: 134
T
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.
Joined: Oct 2003
Posts: 214
S
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

Link Copied to Clipboard