]> arthur.barton.de Git - ngircd-alex.git/commit
Update irc-info.c to use irc-macros.h bug153-ServerMask
authorAlexander Barton <alex@barton.de>
Sat, 9 Feb 2013 22:58:11 +0000 (23:58 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 9 Feb 2013 22:58:11 +0000 (23:58 +0100)
commit5dce3301bd3e9c26e1c1371379366a0aaba32e20
tree2a6d3203ea4c4202c40c702cb5ea9dde1ea93b20
parenta9175145462335ef69dbc2509e2db6f2c96e635c
Update irc-info.c to use irc-macros.h

This includes:

 - move IRC_SetPenalty() at the beginning of the handler functions,
 - use macros provided by irc-macros.h,
 - code cleanup.

The main benefits of this patch are core size reduction, streamlined
structure of the handler functions, and enhanced functionality:
because of the _IRC_GET_TARGET_SERVER_OR_RETURN_() macro using the
Client_SearchServer() function, the target of the specific IRC command
can now be given server names, server mask, or the nickname of a user
connected to the server.

Closes bug #153.
src/ngircd/irc-info.c