projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SF#1706004 by reporting the new value after /set and /reset.
[ircu2.10.12-pk.git]
/
ircd
/
ircd_features.c
diff --git
a/ircd/ircd_features.c
b/ircd/ircd_features.c
index fc327b8f5514d0dce9bb8be7806109d585ea49f1..b54fae827c38e948f0f1162cca1eebcbed9d7622 100644
(file)
--- a/
ircd/ircd_features.c
+++ b/
ircd/ircd_features.c
@@
-590,6
+590,9
@@
feature_set(struct Client* from, const char* const* fields, int count)
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
+
+ if (from)
+ return feature_get(from, fields, count);
}
return 0;
}
return 0;
@@
-653,6
+656,9
@@
feature_reset(struct Client* from, const char* const* fields, int count)
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
if (change && feat->notify) /* call change notify function */
(*feat->notify)();
+
+ if (from)
+ return feature_get(from, fields, count);
}
return 0;
}
return 0;