~vanhoof/+junk/znc

« back to all changes in this revision

Viewing changes to modules/extra/modtcl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-02-06 17:41:38 UTC
  • mfrom: (21.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110206174138-ush4l5mkr4wg738n
Tags: 0.096-2
* Merge 0.092-3~bpo50+1 changelog.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
                Tcl_CreateCommand(interp, "GetCurNick", tcl_GetCurNick, this, NULL);
94
94
                Tcl_CreateCommand(interp, "GetUsername", tcl_GetUsername, this, NULL);
95
95
                Tcl_CreateCommand(interp, "GetRealName", tcl_GetRealName, this, NULL);
96
 
                Tcl_CreateCommand(interp, "GetVHost", tcl_GetVHost, this, NULL);
 
96
                Tcl_CreateCommand(interp, "GetVHost", tcl_GetBindHost, this, NULL);
 
97
                Tcl_CreateCommand(interp, "GetBindHost", tcl_GetBindHost, this, NULL);
97
98
                Tcl_CreateCommand(interp, "GetChans", tcl_GetChans, this, NULL);
98
99
                Tcl_CreateCommand(interp, "GetChannelUsers", tcl_GetChannelUsers, this, NULL);
99
100
                Tcl_CreateCommand(interp, "GetChannelModes", tcl_GetChannelModes, this, NULL);
260
261
                return TCL_OK;
261
262
        }
262
263
 
263
 
        static int tcl_GetVHost STDVAR {
 
264
        static int tcl_GetBindHost STDVAR {
264
265
                CModTcl *mod = static_cast<CModTcl *>(cd);
265
 
                Tcl_SetResult(irp, (char *)mod->m_pUser->GetVHost().c_str(), TCL_VOLATILE);
 
266
                Tcl_SetResult(irp, (char *)mod->m_pUser->GetBindHost().c_str(), TCL_VOLATILE);
266
267
                return TCL_OK;
267
268
        }
268
269