1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 16:43:12 +02:00

Remove unused variables (67 files done, will do rest another time).

This commit is contained in:
Bram Matthys
2019-09-12 17:57:01 +02:00
parent 8d2dad4796
commit 70410b3f33
67 changed files with 126 additions and 331 deletions
+1 -3
View File
@@ -41,14 +41,12 @@ int em_usermsg(Client *sptr, Client *to, MessageTag *mtags, char *text, int noti
MOD_INIT(echo_message)
{
ClientCapabilityInfo cap;
ClientCapability *c;
MessageTagHandlerInfo mtag;
MARK_AS_OFFICIAL_MODULE(modinfo);
memset(&cap, 0, sizeof(cap));
cap.name = "echo-message";
c = ClientCapabilityAdd(modinfo->handle, &cap, &CAP_ECHO_MESSAGE);
ClientCapabilityAdd(modinfo->handle, &cap, &CAP_ECHO_MESSAGE);
HookAdd(modinfo->handle, HOOKTYPE_CHANMSG, 0, em_chanmsg);
HookAdd(modinfo->handle, HOOKTYPE_USERMSG, 0, em_usermsg);