-543 {
-544 if (type == MT_SERVER)
-545 {
-546 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion');
-547 return false;
-548 }
-549 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-550 {
-551 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported');
-552 return false;
-553 }
-554 if ((params_when_on>1) || (params_when_off>1))
-555 {
-556 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported');
-557 return false;
-558 }
-559 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-560 }
+546 {
+547 if (type == MT_SERVER)
+548 {
+549 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion');
+550 return false;
+551 }
+552 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+553 {
+554 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported');
+555 return false;
+556 }
+557 if ((params_when_on>1) || (params_when_off>1))
+558 {
+559 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported');
+560 return false;
+561 }
+562 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+563 }