service/event.cpp: use strncasecmp instead of (stupid) c++ stuff