~ubuntu-branches/ubuntu/trusty/znc/trusty

« back to all changes in this revision

Viewing changes to modules/missingmotd.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-05-06 09:18:27 UTC
  • mfrom: (21.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130506091827-08sixjiyy3hjfx6b
Tags: 1.0-4
* Change section from znc-tcl to interpreters.
* Uploading to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2004-2012  See the AUTHORS file for details.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 2 as published
 
6
 * by the Free Software Foundation.
 
7
 */
 
8
 
 
9
#include <znc/Modules.h>
 
10
 
 
11
class CMissingMotd : public CModule {
 
12
public:
 
13
        MODCONSTRUCTOR(CMissingMotd) {}
 
14
 
 
15
        virtual void OnClientLogin() {
 
16
                PutUser(":irc.znc.in 422 :MOTD File is missing");
 
17
        }
 
18
};
 
19
 
 
20
USERMODULEDEFS(CMissingMotd, "Sends 422 to clients when they login")
 
21