]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commit
Modify IRC enable code
authorMichal Horn <hornmich@fel.cvut.cz>
Tue, 11 Aug 2015 10:11:28 +0000 (12:11 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 28 Aug 2015 14:17:01 +0000 (16:17 +0200)
commitb98da5715a47ac1e8905356cbc7f15440679d0a9
treec78bb04ede36695fa867543f6bd337647966f917
parent0c7e8bbf51446ad69e5c6ffdbff80514c176ec65
Modify IRC enable code

The switch statements have been replaced by more effective lookup table,
The extern variables declaration has been removed as it would cause
problems with threadsave code later.

The lookup table array is not exported now and for getting the IRC status
the rpp_irc_status function is used instead of accessing the exported
variables.

There also was an error in rpp_irc_disable function, which was returning
FAILURE in case of success.
rpp/include/rpp/irc.h
rpp/src/rpp/din.c
rpp/src/rpp/irc.c